Get the derivative of the_handle function in MATLAB

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.

+5
source share
3 answers

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.

Symbolic Math Toolbox, @A Danesh, , @Andrey.

, , :

  • polyval
  • conv
  • deconv
  • polyder
  • polyint
+1

:

 delta = 0.0001;
 d = @(x)( (fun1(x+delta) - fun1(x))./delta)
0

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.

0
source

All Articles