incrementing

19 visualizaciones (últimos 30 días)
student
student el 14 de Feb. de 2012
Respondida: Jeremy Eastwood-Smith el 11 de Nov. de 2018
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

Respuestas (2)

Walter Roberson
Walter Roberson el 15 de Feb. de 2012
Sorry, no there is not.

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

Categorías

Más información sobre Software Development Tools en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by