If you have not signed papers to assign the copyright to anyone else, then place your name in the copyright notice. Tips for Making Code Run Faster. Here are some ways of improving the execution speed of Octave programs. Avoid looping wherever possible. Use iteration rather than recursion whenever possible.
Function calls are slow in Octave.
Avoid resizing matrices unnecessarily. When building a single result matrix from a series of calculations, set the size of the result matrix first, then insert values into it. If you are using eval as an exception handling mechanism and not because you need to execute some arbitrary text, use the try statement instead. The try Statement . Here are some tips for the writing of documentation strings.