Peak value on plot graph
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Reff
am 15 Jan. 2020
Kommentiert: Star Strider
am 16 Jan. 2020
y=a1(:,1);
chan1= y-mean(a1);
fs=128;
d=1/fs;
t=[0:length(chan1)-1]*d;
fs=fft(chan1,128);
pp=fs.*conj(fs)/128;
ff=(2:9)/128/d;
figure(4);
plot(ff,pp(2:9));
title('Power Spectrum');
xlabel('Frequency(Hz)');
ylabel('Power Spectrum Density(µv)');
grid on;
![Peak.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/261912/Peak.jpeg)
How to find peak value on y-axis without using Data Cursor tools. Thanks in advance.
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!