フィルターのクリア

can anyone help me to fix the issue

1 回表示 (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2018 年 4 月 5 日
編集済み: Birdman 2018 年 4 月 5 日
code:
v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15];
for v = [1 2 3 4]
disp(v)
end
In the above code could anyone help me how to display v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15]; together using the same for loop.

採用された回答

Birdman
Birdman 2018 年 4 月 5 日
編集済み: Birdman 2018 年 4 月 5 日
v={[1 2 3 4];[5 6 7 8 9];[10 11 12 13 14 15]};
for i=1:size(v,1)
v{i,:}
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by