Get the derivative of a function_handle in MATLAB -
Get the derivative of a function_handle in MATLAB -
is possible derivative of function_handle other function_handle?
like:
fun1 = @(x) x^2; % ... disp(fun2); @(x) x*2 i know how find derivative of symbolic function can't convert function_handle symbolic function.
i'm new matlab , couldn't find way on doing that. in advance.
the short reply "no." matlab has no thought contents of function_handle mean in symbolic sense. you're improve off creating using syms in first place.
a longer reply either utilize symbolic math toolbox, suggested @a danesh, or approximation, suggested @andrey.
however, if you're working polynomials, can store coefficients array , utilize next functions:
polyval evaluate conv multiply deconv divide polyder differentiate polyint integrate matlab derivative function-handle
Comments
Post a Comment