Answers for "octave pass function over paramenter"

1

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
Posted by: Guest on January-22-2021

Browse Popular Code Answers by Language