Example
This example introduces us to the world of MATLAB/octave when dealing with functions (and "handles"):
Our first, very simple, program is just our function, f:
function a=f(b)At this point we could evaluate it at some value by using the feval function:
octave:1> feval('f',2)But what we really want is to pass this to our "bigger" program that will do more operations (like program two here):
function [low,high] = sim(ff,l,u)Which we run using the "handle" mechanism like above (for function f or ANY function):
octave:1> [ll,hh]=sim('f',2,5)