I have to get the x values for peaks occuring in my plot? What will be the code for that?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Anuradha Bhattacharya
am 29 Sep. 2016
Beantwortet: Massimo Zanetti
am 29 Sep. 2016
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);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!