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

3 Commenti

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

Accedi per commentare.

 Risposta accettata

Jan
Jan il 11 Mag 2021
Modificato: Jan il 11 Mag 2021
What's wrong with
while true
in Matlab?

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Tag

Richiesto:

il 11 Mag 2021

Commentato:

Jan
il 12 Mag 2021

Community Treasure Hunt

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

Start Hunting!

Translated by