As input for my function file I have a function handle, for example y = @(x)x.^3. In this function file this function is evaluated, however I also want to integrate the absolute value of this function. The MATLAB command integral requires a function handle: integral(@(x)y,LB,UB). How do I take the absolute value of this function handle? I tried: @(x)abs(y), but this didn't work. Also some other things I tried didn't work, except filling in @(x)abs(x.^3), but this is not what I want, because the function handle should remain an input for the function file.
MATLAB: How to make a function handle of another function handle
absolute valuefunction handleintegration
Related Question
- Use a function handle inside another function handle
- Possible to “expand” function handle
- Adding elements into a vector using MATLAB GUI
- How to get UIFigure handle
- How can one assigning an input on a GUI edit text box as a function for integration
- Create plot with specified handle
- Anonymous Functions in another anonymous function
- What is the benefit of using a function handle
Best Answer