Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to do this loop?

1 回表示 (過去 30 日間)
Aswin Sandirakumaran
Aswin Sandirakumaran 2018 年 5 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a vector A = [4,2,3]
for 1:
do this
end
how to make this for loop execute as number of times as its value in A. eg: first the for loop should check A(1) = 4 -> so for loop should execute 4 times. second A(2) = 2 -> do the for loop two times. three A(3) = 3 -> do the for loop three times. how to implement this idea?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by