Is it possible to derive from function_handle as another function_handle ?
how
fun1 = @(x) x^2; % do that ... disp(fun2); @(x) x*2
I know how to find the derivative of a symbolic function, but I cannot convert the_handle function to a symbolic function.
I am new to Matlab and I could not find a way to do this. Thanks in advance.
The short answer is "no." MATLAB has no idea what the meaning of function_handle is in a symbolic sense. You better create it with help symsin the first place.
syms
Symbolic Math Toolbox, @A Danesh, , @Andrey.
, , :
polyval
conv
deconv
polyder
polyint
:
delta = 0.0001; d = @(x)( (fun1(x+delta) - fun1(x))./delta)
You cannot analytically handle a function descriptor.
but if you got a symbolic mathematical toolbar, you can form a symbolic function and create a function descriptor from the result.