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