incrementing

20 vues (au cours des 30 derniers jours)
student
student le 14 Fév 2012
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

Réponses (2)

Walter Roberson
Walter Roberson le 15 Fév 2012
Sorry, no there is not.

Jeremy Eastwood-Smith
Jeremy Eastwood-Smith le 11 Nov 2018
you can write i = i+1 that will increment

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by