How to use not equal in for loop

Risposte (1)

James Tursa
James Tursa il 10 Ago 2020
Modificato: James Tursa il 10 Ago 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

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Tag

Richiesto:

il 10 Ago 2020

Modificato:

il 10 Ago 2020

Community Treasure Hunt

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

Start Hunting!

Translated by