while loop in matlab

2 vues (au cours des 30 derniers jours)
Soveatin Kuntur
Soveatin Kuntur le 11 Mai 2021
Commenté : Jan le 12 Mai 2021
I want to iterate like on javascript. I dont know how to define true in matlab
while(true)
  3 commentaires
Soveatin Kuntur
Soveatin Kuntur le 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 le 12 Mai 2021
true is an existing Matlab command, which creates a logical variable. Instead of "while true" you can use "while 1" also.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 11 Mai 2021
Modifié(e) : Jan le 11 Mai 2021
What's wrong with
while true
in Matlab?

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by