while loop in matlab
1 view (last 30 days)
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 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)
See Also
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!