Signal Spectrum Plotting help
古いコメントを表示
I'm trying to plot the spectrum of a signal at a specific time but I'm getting stuck with finding the fs and nf values of the signal. This is the code I have so far and I have attached the files execpt for ab1355_10s.dat. It's too big to upload I put it in my drive account so hopefully the link works. Thank You!!
https://drive.google.com/file/d/1wN0xIRHcnQGATkoocV9OyJ1CInwXafn1/view?usp=sharing
% Task 1
d = load_complex('ab1355_10s.dat');
figure(1);
disp_spec(d,1,1024,2000);
f = linspace(-0.5,0.5,nf)*fs; % Frequency range of spectrum
ds = disp_spec(d,1,1024,2000);
figure(2);
plot(f,abs(ds(:,0.7*fs/nf)));
1 件のコメント
dpb
2020 年 11 月 22 日
I don't know what you would expect the "spectrum of a signal at a specific time" to be? At a specific time, you have only a point sample of the signal.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!