Question

Matlab 2020b shuts down without warning

I have been having problems with Matlab 2020b on my new laptop a Dell Precision 5540 with the i9-9980HK CPU @ 2.40GHz, 2400 Mhz,...

1 month ago | 1 answer | 0

Question

Even distribution of coordinates subset

I have two sets of coordinates A and B, where B is an arbitrary subset of A. I would like a measure of how evenly B is distribu...

1 month ago | 1 answer | 0

Question

bayesopt of patternet in classification problems

I would like to optimize the variables of patternet for a classification problem using bayesopt. I found online the example belo...

9 months ago | 0 answers | 0

Question

How do I remove all fields of a structure that have at least one NaN?

I have a structure S with n fields, field1, field2 etc.. How do I remove those fields that have at least one NaN? Thank you

10 months ago | 3 answers | 0

Question

From nested structure to table in one line of code

I have a structure S with n fields S_field_1, S_field_2,…S_field_n. Each field contains a structure with the same number m and n...

10 months ago | 1 answer | 0

Question

how to synchronize structures with date fields in text format

I have a 31x1 cell array C. Each cell of C contains a structure of variable dimensions (41x1 to 50x1) but all structures have th...

10 months ago | 1 answer | 0

Question

Finding corresponding values in double arrays in structure fields

I have two structures in a for loop with i = 1:n A(i).a B(i).b For each loop i, the field a of structure A contains a double ...

1 year ago | 1 answer | 0

Question

Delete rows from a subset of rows of a mixed cell array

I have a mixed 6x7 cell array A = {'text' 12 NaN 14 'text' 16 17; 'text' 0 NaN 24 25 26 27; 31 32 33 34 35 0 'text'; NaN 42 4...

2 years ago | 1 answer | 0

Question

How do you set rng once and for all so that it is restored everytime random numbers needs to be generated?

Is there a way to avoid having to save the settings of the random generator (e.g. s = rng) and then restore the settings (e.g. r...

2 years ago | 3 answers | 0

Question

Classification Learner and sequentialfs

I use the Classification Learner to select the prediction model that best classifies my data. How can I take advantage of Matlab...

2 years ago | 1 answer | 0