Error: subscripted assignment dimension mismatch for loop
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Cluster Analysis and Anomaly Detection in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!