【发布时间】:2016-03-04 20:14:44
【问题描述】:
我正在阅读Practical Introduction to Frequency Domain Analysis。它显示了如何使用此代码观察信号的频率内容:
Fs = 44100;
y = audioread('guitartune.wav');
NFFT = length(y);
Y = fft(y,NFFT);
F = ((0:1/NFFT:1-1/NFFT)*Fs).';
magnitudeY = abs(Y); % Magnitude of the FFT
phaseY = unwrap(angle(Y)); % Phase of the FFT
helperFrequencyAnalysisPlot1(F,magnitudeY,phaseY,NFFT)
绘图的函数是helperFrequencyAnalysisPlot1。我需要知道该函数是如何进行绘图的,但文章从未显示如何。它实际上是如何完成的?
【问题讨论】:
-
edit helperFrequencyAnalysisPlot1会给你看代码吗?
标签: matlab plot signal-processing fft frequency-domain