How to use not equal in for loop

Respuestas (1)

James Tursa
James Tursa el 10 de Ag. de 2020
Editada: James Tursa el 10 de Ag. de 2020
You could use a while loop. E.g.,
t = 0;
while( t ~= 1 )
% code
% at some point, either set t=1 or break out of loop
end

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Ag. de 2020

Editada:

el 10 de Ag. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by