Hello there, I have a function handle, for example f = @(x) x.^2 and I want to use this as a function input, something like (just schematic):
function scalar = fct(f(x));scalar = int(@(x) f(x).*x^2);end
Is that possible? Greets and thanks!
functionfunction handleinput
function scalar = fct(f(x));scalar = int(@(x) f(x).*x^2);end
Best Answer