Next: , Previous: Line continuation by backslash, Up: Octave Features   [Contents][Index]


5.5 Informative block closing

You may close function, for, while, if, … blocks with endfunction, endfor, endwhile, … keywords in addition to using end. As with MATLAB, the end (or endfunction) keyword that marks the end of a function defined in a .m file is optional.