How to use not equal in for loop

Antworten (1)

James Tursa
James Tursa am 10 Aug. 2020
Bearbeitet: James Tursa am 10 Aug. 2020

0 Stimmen

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

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 10 Aug. 2020

Bearbeitet:

am 10 Aug. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by