octave else if code example
Example 1: octave if-else
if (condition)
then-body
else
else-body
endif
Example 2: if in octave
if (condition)
then-body
endif
if (condition)
then-body
else
else-body
endif
if (condition)
then-body
endif