String problem
Mostra commenti meno recenti
I have the following code
Lev=7;
for i=1:Lev
str=strcat('A',int2str(i));
for j=1:3
str(j,:)=squeeze(Atr(i,j,:));
end
end
This program showing erros like
??? Subscripted assignment dimension mismatch.
Error in ==> attractor_test at 80
str(j,:)=squeeze(Atr(i,j,:));
Actually, I want to assigne names in run time of the program execution. In the above code str have to take names like str ---> A1, A2, A3, ...A7 and store values in A1, A2, A3 ....A7 respectively..
How to do that in matlab ?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings 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!