while loop in matlab

3 visualizaciones (últimos 30 días)
Soveatin Kuntur
Soveatin Kuntur el 11 de Mayo de 2021
Comentada: Jan el 12 de Mayo de 2021
I want to iterate like on javascript. I dont know how to define true in matlab
while(true)
  3 comentarios
Soveatin Kuntur
Soveatin Kuntur el 12 de Mayo de 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 el 12 de Mayo de 2021
true is an existing Matlab command, which creates a logical variable. Instead of "while true" you can use "while 1" also.

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 11 de Mayo de 2021
Editada: Jan el 11 de Mayo de 2021
What's wrong with
while true
in Matlab?

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by