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!