script octave function as parameter code example
Example: octave pass function as parameter
f = @sin; #Create function handle usin '@'
quad (f, 0, pi) #Pass function handle (and therefore the function) to the quad function
f = @sin; #Create function handle usin '@'
quad (f, 0, pi) #Pass function handle (and therefore the function) to the quad function