if i have a plot, how do i have find the derivative of the plot?

for example i have plot(x,y) how do i have find the derivative of it and then find the zeros in that derivative plot?

回答 (1 件)

John Petersen
John Petersen 2012 年 7 月 10 日

0 投票

Do you have a preferred method of taking the derivative? There are many. A simple one (that does not work well for noisy data) is
dy = diff(y)./diff(x);
To find zeros, you could search for where dy changes sign.

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2012 年 7 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by