Ältere Kommentare anzeigen
Is there an easy way to increment numbers in MatLab like in c++? For example:
while end_condition
u(i++) = input('...');
if u(i) <= 0
end_condition = false;
end
end
Antworten (2)
Walter Roberson
am 15 Feb. 2012
0 Stimmen
Sorry, no there is not.
Jeremy Eastwood-Smith
am 11 Nov. 2018
0 Stimmen
you can write i = i+1 that will increment
Kategorien
Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!