You tried? The best way to learn a tool like Matlab is to try something!
In fact, you donβt even need to create an m file function. I will do this with a function descriptor.
fun = @(x) sin(x); f1 = @(f,a,b,c) c*f(a+b); f1(fun,2,3,4) ans = -3.8357
I could define f1 as a function of the m file, but that would require saving the file. Why bother?
user85109
source share