photo

Leon


Last seen: Today Active since 2024

Followers: 0   Following: 0

Statistics

MATLAB Answers

9 Questions
7 Answers

RANK
6,288
of 298,350

REPUTATION
7

CONTRIBUTIONS
9 Questions
7 Answers

ANSWER ACCEPTANCE
66.67%

VOTES RECEIVED
4

RANK
 of 20,571

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 160,925

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 3
  • First Answer

View badges

Feeds

View by

Answered
What is the right formula for the RBF 'KernelScale' of fitcsvm?
The RBF (Gaussian) kernel can be defined with either gamma or sigma: or where sigma is the standard deviation of the Gauss...

21 days ago | 0

Answered
Avoid negative sign with compose() when output is zero, e.g. '-0' or '-0.0'
Since it seems MATLAB doesn't have a function for this, here's the one I made. I also like Stephen23's idea of using a regular e...

2 months ago | 0

Question


Avoid negative sign with compose() when output is zero, e.g. '-0' or '-0.0'
When compose outputs zero, it includes a negative sign if the number was negative, giving, e.g. -0 or -0.0. How can I avoid this...

2 months ago | 3 answers | 0

3

answers

Answered
How can I get script's location when running one section of a script?
I seem to have found a workaround by creating a function in a separate .m in the same folder that calls mfilename("fullpath"), a...

11 months ago | 2

Question


How can I get script's location when running one section of a script?
I frequently run scripts one section at a time. I can be using different computers, remote desktops, etc., so the path changes. ...

11 months ago | 2 answers | 0

2

answers

Answered
fitcdiscr bug: Why does "ClassNames" now have to be provided in alphanumerical order otherwise accuracy is terrible?
I received the following answer and workaround (using kfoldPredict) from Mathworks technical support: The bug here lies within ...

11 months ago | 0

Question


fitPosterior warning: Why does fitPosterior output a warning when the transformation is a step function?
I'm training various SVM models and saving the output from MATLAB. The output has lots of these warning messages: Warning: Clas...

11 months ago | 1 answer | 0

1

answer

Question


fitcdiscr bug: Why does "ClassNames" now have to be provided in alphanumerical order otherwise accuracy is terrible?
[Update: There is a known bug in kfoldLoss. See answer and workaround from Mathworks technical support in the answers section] ...

12 months ago | 2 answers | 0

2

answers

Answered
How to stop further execution of M-script by using command?
This doesn't answer your question, but something I use to stop a program without using an error message like error("Don't panic,...

12 months ago | 1

Question


kfoldLoss() values have inconsistent precision between different iterations of a loop
I am training an RBF SVM with leave-one-out cross-validation using 94 observations and I am surpised to find that the precision ...

1 year ago | 1 answer | 0

1

answer

Question


Possible to iterate over table rows without a loop index variable?
To iterate over the variables (columns) of a table, you can do this: my_table = table([1; 2; 3], [4; 5; 6], ["Seven"; "Eight"; ...

1 year ago | 1 answer | 0

1

answer

Question


How to output variables properly from a parfor loop
Having read over the documentation and Googled, I have an idea of what I'm not allowed to do in a parfor loop, but can't seem to...

1 year ago | 1 answer | 0

1

answer

Answered
How can I check whether an argument is given or not (inputParser)?
Is there any reason not to use exist("arg_name", "var") ? It doesn't give a false positive for a global of the same name. Maybe...

1 year ago | 0

Question


Create confusion matrix from LDA model
It is easy to train an LDA model and find its accuracy by cross-validation as below: Mdl = fitcdiscr(data, "Response_var_name",...

1 year ago | 1 answer | 0

1

answer

Question


What is the best way to add empty rows to an existing table, to pre-allocate for more data?
Let's say I have a table that has 100 rows of ten variables and now I know I am going to need another 100 rows (or perhaps 100,0...

1 year ago | 2 answers | 1

2

answers

Answered
How do I rename fields of a structure array?
Until Matlab (hopefully) introduces a rename field function, I would convert to a table then use renamevars() and then convert b...

1 year ago | 0