Answered

how can find a point from an array where the points it follows start to decrease

Assumption : there is on only one decreasing region in your data points. x = -2:0.1:6; y = x.^3-5*x.^2+5*x-2; D =...

how can find a point from an array where the points it follows start to decrease

Assumption : there is on only one decreasing region in your data points. x = -2:0.1:6; y = x.^3-5*x.^2+5*x-2; D =...

7 years ago | 0

| accepted

Answered

In adding a plot legend, is there a way to name a legend element with what is contained within a specific cell within a structure?

something like this? x = -pi:pi/20:pi; y1 = sin(x); y2 = cos(x); leg(1).name = 'sin(x)'; leg(2).name = 'cos(x)'...

In adding a plot legend, is there a way to name a legend element with what is contained within a specific cell within a structure?

something like this? x = -pi:pi/20:pi; y1 = sin(x); y2 = cos(x); leg(1).name = 'sin(x)'; leg(2).name = 'cos(x)'...

7 years ago | 0

Answered

how to get file name when i take a image file from imgetfile

One easy way is to write a code for that ! (assumption: there is no dot (.) in the name of the image) IMPORTANT NOTE : if you...

how to get file name when i take a image file from imgetfile

One easy way is to write a code for that ! (assumption: there is no dot (.) in the name of the image) IMPORTANT NOTE : if you...

7 years ago | 0

Answered

Ranking rows in a matrix without changing order of elements in rows

A = [1 0 0 1 0; 0 1 1 1 1; 1 0 1 1 0; 0 0 0 1 0] B = sum(A')'; [m,n] = sort(B); now A(n(1),:) shows the raw with the ...

Ranking rows in a matrix without changing order of elements in rows

A = [1 0 0 1 0; 0 1 1 1 1; 1 0 1 1 0; 0 0 0 1 0] B = sum(A')'; [m,n] = sort(B); now A(n(1),:) shows the raw with the ...

7 years ago | 0

| accepted

Answered

delete rows depend on repeated value from 1 col

Consider this example (it is not the fastest and easiest way, but it solves your problem) s = {3 '2013-10-01' '11:00:00' '00...

delete rows depend on repeated value from 1 col

Consider this example (it is not the fastest and easiest way, but it solves your problem) s = {3 '2013-10-01' '11:00:00' '00...

7 years ago | 0

Answered

save a table result

1- Use "save" to save any variable (including tables) in workspace. For example, save the table "T" in the file "savefile.mat". ...

save a table result

1- Use "save" to save any variable (including tables) in workspace. For example, save the table "T" in the file "savefile.mat". ...

7 years ago | 2

| accepted

Answered

How to write MATLAb code to generate confusion matrices and calcultes recall and precision?

You do not have to make 21 separate confusion matrices. You should just make one confusion matrix. E.g. let Y be a vector with ...

How to write MATLAb code to generate confusion matrices and calcultes recall and precision?

You do not have to make 21 separate confusion matrices. You should just make one confusion matrix. E.g. let Y be a vector with ...

7 years ago | 0

Question

How can I make a decision stump using a decision tree ?

Right now, I am using fitctree and pruning the tree to level one, but beacuse the 'SplitCriterion' is 'gdi' and the 'PruneCriter...

7 years ago | 1 answer | 0

Answered

What parameters to use to show performance of a classifer

There is not any "best" performance evaluation, specifically for N-class classifier (N>2) . It depends on your problem in hand. ...

What parameters to use to show performance of a classifer

There is not any "best" performance evaluation, specifically for N-class classifier (N>2) . It depends on your problem in hand. ...

7 years ago | 0

Answered

what does it mean: "MaxNumSplits is not a valid parameter name"

I believe the Matlab version that you are using does not support MaxNumSplits. To check this, type help templateTree an...

what does it mean: "MaxNumSplits is not a valid parameter name"

I believe the Matlab version that you are using does not support MaxNumSplits. To check this, type help templateTree an...

7 years ago | 0

| accepted