if condition inside another
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 3 de Mayo de 2014
What is the unexpected result? Posting the code might offer some more clues.
Image Analyst
el 3 de Mayo de 2014
Are you stepping through the code with the debugger to see which blocks it enters and which it does not enter?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Octave en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!