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

3 Comments

Jan
Jan on 11 May 2021
What does "I dont to define true in matlab" mean?
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 on 12 May 2021
true is an existing Matlab command, which creates a logical variable. Instead of "while true" you can use "while 1" also.

Sign in to comment.

 Accepted Answer

Jan
Jan on 11 May 2021
Edited: Jan on 11 May 2021
What's wrong with
while true
in Matlab?

More Answers (0)

Categories

Tags

Asked:

on 11 May 2021

Commented:

Jan
on 12 May 2021

Community Treasure Hunt

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

Start Hunting!