But what about the derivative? Im trying to differentiate the function, maybe its not being shown as well because the original is

If it was for say, :

function [y]=f(x)

y=exp(x);

then...

then, i want to plot the derivative, and approximate it... using the values of x = 0.01, 0.001.. .etc, so the fd(x) is needed.>>x=[-10:0.5:10]

>>y=f(x)

>>plot(x,y);