Question

Parallel computing, occasionally get Exception message "Message Catalog MATLAB:load was not loaded from the file"

I am running two jobs on a cluster, job1 on node1, job2 on node2. Job1 starts a little bit earlier than job2. Everything is fin...

nästan 2 år ago | 1 answer | 0

Question

How can I run parallel job on a specific node?

I have access to a cluster, which contains several nodes, node01,node02, etc. The administrator has configured the Slurm profile...

nästan 2 år ago | 1 answer | 0

Question

Can I set MarkerFaceColor to part of the data points?

plot(1:10,1:10,'s') Can I set MarkerFaceColor to red for point 1,2,3 while leave the other points unchanged? I tried in intera...

nästan 2 år ago | 1 answer | 0

Answered

A moving point along a graph.

Although this is an old thread, in case someone needs, trace-marker-along-line

A moving point along a graph.

Although this is an old thread, in case someone needs, trace-marker-along-line

nästan 2 år ago | 0

Answered

How to open the file of type Mn.

This should be helpful. MATLAB File Association & Shortcut Fix

How to open the file of type Mn.

This should be helpful. MATLAB File Association & Shortcut Fix

nästan 2 år ago | 0

Answered

How to find a constrained sum within a region

You can do this in a binary search manner, instead of doing sum() stepwise. Below is pseudo code diameterMin = 0.001; % choo...

How to find a constrained sum within a region

You can do this in a binary search manner, instead of doing sum() stepwise. Below is pseudo code diameterMin = 0.001; % choo...

ungefär 2 år ago | 0

Answered

How do you populate a struct with multiple loaded .mat files?

There is a contradiction between your statement and your comment in code. I assume you are asking about " however when I wrap it...

How do you populate a struct with multiple loaded .mat files?

There is a contradiction between your statement and your comment in code. I assume you are asking about " however when I wrap it...

ungefär 2 år ago | 0

| accepted

Answered

Understanding MatLab's built-in SVM cross-validation on fitcsvm

Maybe kfoldLoss uses a different definition of loss than yours. Your definition is 1-accuracy. https://www.mathworks.com/help/...

Understanding MatLab's built-in SVM cross-validation on fitcsvm

Maybe kfoldLoss uses a different definition of loss than yours. Your definition is 1-accuracy. https://www.mathworks.com/help/...

ungefär 2 år ago | 0

Answered

Find indicies of k smallest matrix elements

[~, indices] = sort(A(:), 'ascend'); ind = indices(1:k);

Find indicies of k smallest matrix elements

[~, indices] = sort(A(:), 'ascend'); ind = indices(1:k);

ungefär 2 år ago | 0

| accepted

Answered

Function with two outputs only giving one output

Apparently, the code is right. I assume you are new to matlab. You should use [C K] = FTOCK (degreeF) to receive two out...

Function with two outputs only giving one output

Apparently, the code is right. I assume you are new to matlab. You should use [C K] = FTOCK (degreeF) to receive two out...

ungefär 2 år ago | 0

Answered

When I run the file I get an error

You should provide a reproducible snippet. I copy your code and run, it turns out "Unrecognized function or variable 'f'." at li...

When I run the file I get an error

You should provide a reproducible snippet. I copy your code and run, it turns out "Unrecognized function or variable 'f'." at li...

ungefär 2 år ago | 0

Answered

Can I add a file path for a document that is not on my desktop using the SPM12 program in MatLab?

You can export the batch, which is a .m file, then you can edit the path programmatically.

Can I add a file path for a document that is not on my desktop using the SPM12 program in MatLab?

You can export the batch, which is a .m file, then you can edit the path programmatically.

ungefär 2 år ago | 0

Question

Conflict between SVM classifier and perfcurve()

I want to do binary classification using SVM and evaluate its performance using ROC by the function perfcurve(). Meanwhile I wan...

mer än 2 år ago | 1 answer | 0

Answered

Move all figures to a specific monitor？

Dose anyone know how to accomplish this?

Move all figures to a specific monitor？

Dose anyone know how to accomplish this?

nästan 3 år ago | 0

Question

Move all figures to a specific monitor？

I have two monitors, I prefer to write code on primary monitor and view figures on secondary monitor. I have managed to make the...

nästan 3 år ago | 2 answers | 0

Question

Parfor, reference to a cleared variable

I have a script like the pseudo-code below. When I run my script, MATLAB says "Reference to a cleared variable xxx". After remov...

mer än 3 år ago | 1 answer | 0