how to graph function
古いコメントを表示
[y,Fs] = audioread('C:\Users\Casper\Desktop\3.3V.wav');
L=length(y); % series length
;
f = Fs/2*linspace(0,1,L/2+1); % single-sided positive frequency
X = fft(y)/L; % normalized fft
PSD=2*abs(X(1:L/2+1)); % one-sided amplitude spectrum
figure,plot(f,PSD);
grid
xlabel('freq(Hz)')
ylabel('amplitude')
採用された回答
その他の回答 (1 件)
Voss
2021 年 12 月 28 日
You could use Data Cursor to create a datatip, or you could try something like this:
idx = find(f(:) > 1000 & f(:) < 2500 & PSD(:) > 0.00075);
3 件のコメント
burak Kalayoglu
2021 年 12 月 28 日
編集済み: burak Kalayoglu
2021 年 12 月 28 日
Voss
2021 年 12 月 28 日
What does this do?
f(1698)
PSD(1698)
burak Kalayoglu
2021 年 12 月 28 日
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!