Signal Spectrum Plotting help
Mostrar comentarios más antiguos
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 comentario
dpb
el 22 de Nov. de 2020
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!