We have moved to @ Placement Papers Hub !! Visit our new website here for more..

MATLAB DIFFERENTIATION GRAPH

MATLAB DIFFERENTIATION GRAPH

clc;
clear all;
close all;
x=[-2:.01:4];
y=3*x.^3-26*x+6;
yd=9*x.^2-26;
ydd=18*x;
plot(x,y,'-b')


line(x,yd,'color','r')
line(x,ydd,'color','g');

title('Differentiation graph','color','r','fontsize',20);

text(-1,37,'\leftarrowNo 
derivative','color','b','edgecolor','k','linewidth',3);

text(.5,-30,'\uparrowFirst derivative','color','r','edgecolor','k','linewidth',3);

text(1,-20,'\leftarrow2nd derivative','color','g','edgecolor','k','linewidth',3);

legend('Equation','first derivative','2nd derivative',0);

xlabel('Time','color','m');

ylabel('Amplitude','color','m');