Hi, I am very new to Matlab so apologies in advance! I have two columns of numbers which I have used for plotting a simple x-y curve. Now I need to have the derivate of this curve. So it would be like dx/dy for Y axis.
No products are associated with this question.
X=0:0.1:10 % Your x-axis Y=sin(X) % Your strain signal dY=diff(Y)./diff(X) plot(X,Y) % Your original signal hold on plot(X(2:end),dY,'r') %Your derivative signal