dynamic variables
Ältere Kommentare anzeigen
hello every body , who know how to name variables dynamically such as X1, x2,X3,...Xn in for loop
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 14 Feb. 2012
0 Stimmen
3 Kommentare
AYAH
am 16 Feb. 2012
Walter Roberson
am 16 Feb. 2012
If you want X0 onward, then
X{2}= [1 2 4];
X{3}= [1 7 8 9 7];
and
for i = 0:2:10
disp(X{i+1})
end
AYAH
am 16 Feb. 2012
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!