이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how i can get loop?

조회 수: 6 (최근 30일)
kamal faris
kamal faris . 2018년 2월 20일
마감: MATLAB Answer Bot . 2021년 8월 20일
If the condition on line 33 acceptable, then return to the beginning of the program else will continue, I want a loop that its the output only lines 40-45, how i can to do it ... can i get example

답변 (2개)

Image Analyst
Image Analyst 2018년 2월 20일
편집: Image Analyst 님. 2018년 2월 20일
Put it inside a for or while loop. You can't get an example because I don't want to type in all your code and you didn't provide and text code that we can simply copy and paste. And that includes giving sample values for a, b, c, etc. so the code will run.

Walter Roberson
Walter Roberson 2018년 2월 20일
In MATLAB, there is no direct way to "return to the beginning of the program". The closest you can get is things like
while true
if condition
do whatever
do whatever else


Community Treasure Hunt

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

Start Hunting!

Translated by