Info

此问题已关闭。 请重新打开它进行编辑或回答。

How does one differentiate in matlab

1 次查看(过去 30 天)
How does one differentiate and plot in matlab

采纳的回答

Ameer Hamza
Ameer Hamza 2018-5-14
编辑:Ameer Hamza 2018-5-14
diff() decrease the number of elements in a vector by one. You also need to exclude one element of vector x to make them of equal length.
plot(x(2:end), v) % or
plot(x(1:end-1), v)

更多回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by