how to decrements variable in for loop

for i=17:i
how to decrement i value.
i.e i value in next loop i=16 and i=15 in next loop

댓글 수: 1

Jan
Jan 2012년 1월 30일
Having the same variable on the right and left hand in FOR is confusing.

댓글을 달려면 로그인하십시오.

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2012년 1월 30일

1 개 추천

Hi,
doc for
and take a look at the parameter "stepval".
Titus

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2012년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by