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

3 Kommentare

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Jan
Jan am 11 Mai 2021
Bearbeitet: Jan am 11 Mai 2021

2 Stimmen

What's wrong with
while true
in Matlab?

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 11 Mai 2021

Kommentiert:

Jan
am 12 Mai 2021

Community Treasure Hunt

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

Start Hunting!

Translated by