Dear all,
I have this problem
T=1000
for ii=1:T
for t=ii:T
'here a have a function that depends on t'
end
end
If I try to run this code I get an error that 'ii' is not recognised within the second loop. Is there a way to avoid this?
Best

댓글 수: 2

Robin Kirsch
Robin Kirsch 2020년 5월 29일
If i copy paste your code it works, i dont get the error
Adam Danz
Adam Danz 2020년 5월 29일
Please provide the entire copy-pasted error message.
It may be helpful to know what release of matlab you're using.

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

답변 (0개)

카테고리

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

질문:

2020년 5월 29일

댓글:

2020년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by