if condition inside another
显示 更早的评论
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
2014-5-3
What is the unexpected result? Posting the code might offer some more clues.
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!