I want to iterate like on javascript. I dont know how to define true in matlab
while(true)

댓글 수: 3

Jan
Jan 2021년 5월 11일
What does "I dont to define true in matlab" mean?
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일

2 개 추천

What's wrong with
while true
in Matlab?

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2021년 5월 11일

댓글:

Jan
2021년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by