Frage

Mex, how to copy an array to output

In my mex function my_expm.c, I calculated matrix expoential for the input matrix, void mexFunction(int nlhs,mxArray *plhs[], i...

fast 3 Jahre vor | 1 Antwort | 0

Frage

With mxMalloc() and mxSetDoubles(), mex function crash matlab

I try to build a mex interface for a C function r8mat_expm1() that calculates matrix exponential, double *r8mat_expm1 ( int n, ...

fast 3 Jahre vor | 3 Antworten | 1

Frage

Mex, how to make visual studio support C11 standard?

I am building a mex function from c language, which uses a non-standard data type, i.e. double complex, double complex *my_f...

fast 3 Jahre vor | 1 Antwort | 0

Frage

Remove duplicates only for specific values

A = [1,2,2,3,3,4,5,5,5,6]; value_to_remove = [2,3]; I have an array A, which contains some duplciates. I want to remove part o...

fast 3 Jahre vor | 1 Antwort | 0

Frage

During parfor-loop, suddenly get the error "unable to read file"

parfor k = 1:100000 % something else tmpStruct = load(filename); % something else end I have 3 scripts like the...

fast 3 Jahre vor | 0 Antworten | 0

Frage

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...

fast 3 Jahre vor | 1 Antwort | 0

Frage

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...

fast 3 Jahre vor | 1 Antwort | 0

Frage

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...

fast 3 Jahre vor | 1 Antwort | 0

Beantwortet

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

fast 3 Jahre vor | 0

Beantwortet

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

fast 3 Jahre vor | 0

Beantwortet

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...

etwa 3 Jahre vor | 0

Beantwortet

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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet

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/...

etwa 3 Jahre vor | 0

Beantwortet

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);

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet

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...

etwa 3 Jahre vor | 0

Beantwortet

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...

etwa 3 Jahre vor | 0

Beantwortet

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.

etwa 3 Jahre vor | 0

Frage

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...

mehr als 3 Jahre vor | 1 Antwort | 0

Beantwortet

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?

fast 4 Jahre vor | 0

Frage

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...

fast 4 Jahre vor | 2 Antworten | 0

Frage

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...

mehr als 4 Jahre vor | 1 Antwort | 0