Here are some ways of improving the execution speed of Octave programs.
result = zeros (big_n, big_m) for i = over:and_over r1 = ... r2 = ... result (r1, r2) = new_value (); endfor
result = ; for i = ever:and_ever result = [ result, new_value() ]; endfor
fevalwhenever possible, because they require Octave to parse input or look up the name of a function in the symbol table.
If you are using
eval as an exception handling mechanism and not
because you need to execute some arbitrary text, use the
statement instead. See The try Statement.
"all"so that Octave doesn't waste a lot of time checking to see if you have updated your function files.