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일

0 개 추천

Sorry, no there is not.
Jeremy Eastwood-Smith
Jeremy Eastwood-Smith 2018년 11월 11일

0 개 추천

you can write i = i+1 that will increment

카테고리

도움말 센터File Exchange에서 Software Development Tools에 대해 자세히 알아보기

질문:

2012년 2월 14일

답변:

2018년 11월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by