I have a 60x1 vector which i plotted against time (60 units). I want to determine the derivative of that graph. How do i do that

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 24 Dez. 2014
Bearbeitet: Azzi Abdelmalek am 24 Dez. 2014

1 Stimme

Example
t=0:0.1:10
y=t.^2
dy=gradient(y,t)
subplot(211);
plot(t,y)
subplot(212)
plot(t,dy)

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by