How to use not equal in for loop

Réponses (1)

James Tursa
James Tursa le 10 Août 2020
Modifié(e) : James Tursa le 10 Août 2020

0 votes

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

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Tags

Question posée :

le 10 Août 2020

Modifié(e) :

le 10 Août 2020

Community Treasure Hunt

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

Start Hunting!

Translated by