Community Profile

photo

Leon


Last seen: Today Active since 2024

Statistics

  • Thankful Level 2
  • First Answer

View badges

Content Feed

View by

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

2 months 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",...

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

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

3 months ago | 0