Clear Filters
Clear Filters

create a function that is the derivate of a f=@(t) function

3 views (last 30 days)
having a function
fa=@(x) x^5-0.4475*x.^4-3.1*x.^3 + 3.085*x.^2-0:962*x+ 0:0943
how to calculate
dfa=@(x) diff(fa)
so that it is still a function and i can calculate,for example:

Accepted Answer

Giorgos Papakonstantinou
Giorgos Papakonstantinou on 14 Mar 2015
Maybe this:
fa = @(x)x^5-0.4475*x.^4-3.1*x.^3+3.085*x.^2-0.962*x+0.0943
g = sym(fa);
dg = diff(g);
df = matlabFunction(dg)
df =

More Answers (0)


Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!