how can I make this nonstationary signal's dft graph?

조회 수: 7 (최근 30일)
DOHYUN JANG
DOHYUN JANG 2019년 11월 15일
댓글: DOHYUN JANG 2019년 11월 22일
과제4 사진.pnghow can i make such a signal graph with 5hz, 20hz, 50hz and 1000 smapling frequency?

채택된 답변

Prabhan Purwar
Prabhan Purwar 2019년 11월 21일
Hi,
The following code illustrates a method to find DFT of a nonstationary signal.
a=1;
f=[5 20 50 1000];
for i=1:length(f)
t=linspace(0,0.3,2000);
y(i,:)=a*sin(2*pi*f(i)*t);
end
ynet=[y(1,:) y(2,:) y(3,:) y(4,:)];
plot(ynet);
yft=fft(ynet);
figure
L=length(yft);
f = 6.6667e+03*(0:(L/2))/L;
g=fftshift(abs(yft));
plot(f,g(4000:8000));
ft.JPG
Refer to the following link for further information:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by