Info
此问题已关闭。 请重新打开它进行编辑或回答。
How does one differentiate in matlab
1 次查看(过去 30 天)
显示 更早的评论
How does one differentiate and plot in matlab
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!