![ft.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/249353/ft.jpeg)
how can I make this nonstationary signal's dft graph?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
DOHYUN JANG
le 15 Nov 2019
Commenté : DOHYUN JANG
le 22 Nov 2019
![과제4 사진.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/248512/image.png)
0 commentaires
Réponse acceptée
Prabhan Purwar
le 21 Nov 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/249353/ft.jpeg)
Refer to the following link for further information:
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Discrete Fourier and Cosine Transforms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!