Réponse apportée
How to select non-NaN from a matrix?
The following should work X = ones(10,4); X(3,4) = NaN; X(3,6) = NaN; X(10,1) = NaN; newData=X((all((~i...

environ 7 ans il y a | 2

| A accepté

Question


How to select non-NaN from a matrix?
Say we are only interested to extract row with only a non-NAN, 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 NaN 0 NaN 1 1 1 1 ...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to use MESHGRID or NDGRID instead of multiple FOR-Loop?
Dear coder, Briefly, the program objective was to evaluate all possible constant pairs for a different set of condition. Sinc...

environ 7 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
How to use MESHGRID or NDGRID instead of multiple FOR-Loop?
Credit to KSSV & Andrei Bobrov, their proposed idea lead to the solution below. KSSV: His idea allow more flexibility for t...

environ 7 ans il y a | 0

| A accepté

Question


Any approach faster to concatenate multi dimension cell?
Dear all, The objective was to concatenate multi dimension cell, may I know how to avoid such a FOR loop. Thanks in advanc...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to access second axes in the PLOTYY syntax?
Dear all, This thread is a continuation from the following <https://www.mathworks.com/matlabcentral/answers/360516-matlab-fai...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to change target class when using CLASSPERF
Dear all, I wonder, How to specify a particular label as the target class when using CLASSPERF. For example, I want to indic...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


MATLAB fail to create Chart with Multiple x-Axes and y-Axes
Dear all, the objective was to two x-Axes and y-Axes. However, I am unable to produce the intended graph even follow the <https...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


Unable to modify the X-axis and LINKAXES setting when using YYAXIS
Dear all, the objective was to plot a double YYaxis for a two different signal. In addition, the X-axis will have two different...

environ 7 ans il y a | 1 réponse | 0

0

réponse

Question


What and how to understand the math behind YYaxis syntax in MATLAB
Dear all, I am interested to know how does MATLAB under the syntax YYaxis was able to fitted two signals with different scales....

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


No ticks being displayed when using XTickLabel
Dear all, The idea was to add ticks label to the x axis with a predefined label. The vector label was a mix of empty cell (i.e....

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to convert cell with numeric and string-nan into TYPE double
Dear all, I have a cell with the combination of number and string NaN. May I know how I can convert the content into a double t...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to effectively concatenate values in cells with different dimension into single column double
Dear Coder, I have cells with diffrent dimension, for example cell {1}=[1 2 3], cell {2}=[ 4 5 6 7 8] cell{3}=[9 10]. How ca...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


Support Vector Machine: SPEED-UP and make the computational of SVM FITCSVM & PREDICT more efficient
Dear all I am using the build-in MATLAB svm training and classification to classify a binary class (i.e., class 0 OR 1). To a...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


How to combine PLOT the output from Density Estimation and Gaussian Function
Dear coder, Im interested to plot the output from KSDENSITY as shown below <</matlabcentral/answers/uploaded_files/85432/...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
How to PLOT Receiver operating characteristic in MATLAB: For different threshold used in Kernel Density Estimation
Similar concept but does answer the question in this thread can be found in this <https://www.mathworks.com/matlabcentral/answer...

plus de 7 ans il y a | 0

| A accepté

Question


How to use ROC FUNCTION in MATLAB
Dear Matlab user, I have difficulties in applying the ROC FUNCTION. Let have the discussion by having a simple example. Assu...

plus de 7 ans il y a | 1 réponse | 2

1

réponse

Question


How to PLOT Receiver operating characteristic in MATLAB: For different threshold used in Kernel Density Estimation
Dear coder, I am aware similar questions has been ask in <https://www.mathworks.com/matlabcentral/answers/257404-how-to-plot-r...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


Code Optimization & simplification: BSXFUN & Confusion Matrix Calculation
Dear all The main objective of this thread is toward codes optimization & simplification. There are two objectives 1) To ...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


Used CROSSVALIND to Randomize rows with numerical only but not NAN
Dear all, I have a column double vector which consist 0,1 and NAN. The big idea was to assign the column vector into either one...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to assign a column of CATEGORICAL array to TABLE
Dear all, My understanding is TABLE each variable in the table to have a different data type. However, I cannot find a straight...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to extract every elements with different dimension at multiple cells in efficient manner?
Dear Akira, Thanks for your response, I give an idea of using the *VERTCAT*. Using *VERTCAT* instead of *HORZCAT* skip the need...

plus de 7 ans il y a | 0

| A accepté

Question


How to effectively assign values to different location in a TABLE?
Dear all, Pertaining to the above subject. I want to assign the elements in vector S to the TABLE at each of the locations as ...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


How to extract every elements with different dimension at multiple cells in efficient manner?
Dear all, Say I have three cells, where the element dd = [49;50;51;52;53;54] [55;56;57] [85;86;87;88;89;90] The objec...

plus de 7 ans il y a | 3 réponses | 0

3

réponses

Question


How to determine maximum of n times FOR loop iteration
Dear all, This may sound so basic, but I had google using various keyword (or maybe I used wrong keyword), but I failed to find...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


How to rename TABLE column by the combination of Character and number?
Dear all, pertaining of the above subject. I have the following code c=1 for threshold = 0.5:0.01:0.6 for i =1:2 T...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


What is the smart way to evaluate performance for KERNEL DENSITY ESTIMATION model
Hi Matlab Coder, In this example, I am using Kernel Density Estimation (i.e., KSDENSITY) to assign whether a particular subje...

plus de 7 ans il y a | 1 réponse | 1

0

réponse

Réponse apportée
How to efficiently make the for loop of different dot structure compact?
I think, this latest work-around work better than the original version.. However, I welcome any new suggestion. sixEarly = ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Is there any function that similar like CELLFUN, for a TABLE Dataype
Dear all Turn out, using TABLE type is more flexible and easier. The above problem was solved using valid = find((at....

plus de 7 ans il y a | 0

| A accepté

Question


How to access column or a row in Table
How I can access the row or column in Matlab Table. Interestingly, Matlab allow you to access the content by using the traditio...

plus de 7 ans il y a | 1 réponse | 1

1

réponse

Charger plus