while loop in matlab

조회 수: 2 (최근 30일)
Soveatin Kuntur
Soveatin Kuntur 2021년 5월 11일
댓글: Jan 2021년 5월 12일
I want to iterate like on javascript. I dont know how to define true in matlab
while(true)
  댓글 수: 3
Soveatin Kuntur
Soveatin Kuntur 2021년 5월 12일
sorry typo. I was saying I dont know how to. Thanks for the answer! I just knew that matlab is having while true itself
Jan
Jan 2021년 5월 12일
true is an existing Matlab command, which creates a logical variable. Instead of "while true" you can use "while 1" also.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2021년 5월 11일
편집: Jan 2021년 5월 11일
What's wrong with
while true
in Matlab?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by