dynamic variables
古いコメントを表示
hello every body , who know how to name variables dynamically such as X1, x2,X3,...Xn in for loop
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 2 月 14 日
0 投票
3 件のコメント
AYAH
2012 年 2 月 16 日
Walter Roberson
2012 年 2 月 16 日
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
2012 年 2 月 16 日
カテゴリ
ヘルプ センター および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!