while loop in matlab
Show older comments
I want to iterate like on javascript. I dont know how to define true in matlab
while(true)
3 Comments
Jan
on 11 May 2021
What does "I dont to define true in matlab" mean?
Soveatin Kuntur
on 12 May 2021
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.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!