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)));
Best Answer