필터 지우기
필터 지우기

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