I have to get the x values for peaks occuring in my plot? What will be the code for that?

1 回表示 (過去 30 日間)
The following is my code:
a = load('ra1.dat');
x = a(:,1);
y = a(:,2);
y_mov_average = filter(ones(1,10)/10,1,y);
plot(x,y);
dy = diff(y)./diff(x);

採用された回答

Massimo Zanetti
Massimo Zanetti 2016 年 9 月 29 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by