incrementing

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

Risposte (2)

Jeremy Eastwood-Smith
Jeremy Eastwood-Smith il 11 Nov 2018

0 voti

you can write i = i+1 that will increment

Categorie

Scopri di più su Software Development Tools in Centro assistenza e File Exchange

Richiesto:

il 14 Feb 2012

Community Treasure Hunt

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

Start Hunting!

Translated by