incrementing

19 次查看(过去 30 天)
student
student 2012-2-14
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

回答(2 个)

Walter Roberson
Walter Roberson 2012-2-15
Sorry, no there is not.

Jeremy Eastwood-Smith
you can write i = i+1 that will increment

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by