Function handle as function input?
Ältere Kommentare anzeigen
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!
1 Kommentar
Star Strider
am 23 Mai 2017
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Function Handles finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!