I want to write if condition inside if condition such that
if ...
'statement'
elseif...
'statement'
if....
'statement'
else
'statement'
end
else
'statement'
end
Is there a logical problem here, because the program gives me an unexpected result?
Thanks

댓글 수: 2

Geoff Hayes
Geoff Hayes 2014년 5월 3일
What is the unexpected result? Posting the code might offer some more clues.
Image Analyst
Image Analyst 2014년 5월 3일
Are you stepping through the code with the debugger to see which blocks it enters and which it does not enter?

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

 채택된 답변

Jan
Jan 2014년 5월 4일

1 개 추천

The shown pseudo code does not contain any logical problems. This means, that the problem is concealed in the 'statement' parts or in the arguments of the if commands abbreviated as '...' in your code.
This answer is trivial, but the best I can find based on your question. Please add more details be editing your question.

추가 답변 (0개)

카테고리

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

태그

질문:

2014년 5월 3일

답변:

Jan
2014년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by