how to dynamically assign data to a variable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Amit
am 3 Dez. 2014
Beantwortet: Sean de Wolski
am 3 Dez. 2014
for ii=1:20
assignin('base', ['PClean_',num2str(ii)],ActualReading(1:end,17));
PClean=['PClean_%d',ii];
I wish to assign data of PClean_1,PClean_2,PClean_3,PClean_4....and so on to PClean but i am not able to assign it for each loop
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 3 Dez. 2014
Dynamic and variable should really never be in the same sentence :)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!