Subscripted assignment dimension mismatch.
Show older comments
Please I am grateful for your concern. My code use to have a horzcat dimensions but I received great support from here which helped a lot. The below problem still exist. This occurs because one sample of my data is 1 x 500 and Im running the code on 231 samples of data with matrix 231 x 500.
The imf of each samples is 50 x 500 but the data of the 231 samples turns to multiply the number of samples(231) by 500 which results in 50 x 115500 instead of looping through the imf of the 231 individually.
at this point I need a way to loop through for the imf to be 50 x 500 and not 50 x 1155500 or a way to solve the mismatch of dimension.
error:
Subscripted assignment dimension mismatch.
Error in tvf_emd (line 127)
imf(nimf,:)=y(ind_remov_pad);
the code and data is attached.
6 Comments
Walter Roberson
on 25 Sep 2019
Unrecognized function or variable 'INST_FREQ_local'.
61 [instAmp0,instFreq0] = INST_FREQ_local(y);
Stephen23
on 9 Oct 2019
@Yussif Moro Awelisah: note that you have uploaded copyright files, without including their licenses:
Yussif M. Awelisah
on 9 Oct 2019
Stephen23
on 9 Oct 2019
"This occurs because one sample of my data is 1 x 500 and Im running the code on 231 samples of data with matrix 231 x 500. "
It is not completely clear what the problem is: surely you can easily loop over the rows and easily collect the outputs into a cell array. After the loop you can concatenate them, padding as required.
Yussif M. Awelisah
on 9 Oct 2019
Yussif M. Awelisah
on 12 Oct 2019
Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!