フィルターのクリア

i would like to get all values of for loop outside loop,but this program gives me the last value only

2 ビュー (過去 30 日間)
for i=1:5
x(i)=i+1;
end
disp(x(i));

採用された回答

Walter Roberson
Walter Roberson 2015 年 7 月 4 日
disp(x);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by