while loop in matlab

2 visualizzazioni (ultimi 30 giorni)
Soveatin Kuntur
Soveatin Kuntur il 11 Mag 2021
Commentato: Jan il 12 Mag 2021
I want to iterate like on javascript. I dont know how to define true in matlab
while(true)
  3 Commenti
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 Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by