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

6 years ago | 2

| accepted

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 3 answers | 0

3

answers

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

6 years ago | 0

| accepted

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 0

| accepted

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

6 years ago | 1 answer | 2

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0

| accepted

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

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 3 answers | 0

3

answers

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 1

0

answers

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 1 answer | 1

1

answer

Load more