incrementing

조회 수: 19 (최근 30일)
student
student 2012년 2월 14일
답변: Jeremy Eastwood-Smith 2018년 11월 11일
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
Jeremy Eastwood-Smith 2018년 11월 11일
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