Error: subscripted assignment dimension mismatch for loop
Show older comments
Hello,
The error I get is : subscripted assignment dimension mismatch at line 40. [line 40 = dataSet(:,1) = str2double(dataArray{1});]
I am trying to loop across a specific number of files in a directory, Everything goes smooth for the first few runs and at random counter values (chopIndex) I get the error. When I did check my workspace, for the iterations where there is no error the size of "dataSet" is 101000x3 double, but post error the size of "dataSet" is 102000x3double.
When I restart and run the code the same issue occurs at a different iteration.
Why does this happen? I'm confused. Please Help.
I have attached my code.
Thank You. SP
Accepted Answer
More Answers (0)
Categories
Find more on Cluster Analysis and Anomaly Detection 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!