How can I get a time versus amplitude graph from the waveform.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vahram Voskerchyan
am 23 Okt. 2021
Beantwortet: Star Strider
am 23 Okt. 2021
I have used the following code to get a FMCW sweep for ThZ range.
sFMCW = phased.FMCWWaveform('SweepBandwidth',192e12,...
'SweepTime',1e-9,...
'SampleRate',384e12,'SweepDirection','Triangle',...
'NumSweeps',2);
sig = step(sFMCW);
windowlength = 32;
noverlap = 16;
nfft = 32;
spectrogram(sig,windowlength,noverlap,nfft,sFMCW.SampleRate,'yaxis')
And got the following graph. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/776473/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/776473/image.jpeg)
How can I get time versus amplitude of the following graph?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 23 Okt. 2021
The spectrogram function returns amplitude (the ‘z’ axis of the rotated surf plot) in units of dB/Hz, so it will not produce the amplitude results that the fft function would return.
Instead, use the pspectrum function with the 'spectrogram' option, that will return the amplitude uints (again the ‘z’ axis of the rotated surf plot) of the original signal.
Compare the two funcitons with the same signal to see the difference in the results. Both of them provide the ability to get the data directly from the outputs without having to recover them from the surf plot (although that is always an option).
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Antennas, Microphones, and Sonar Transducers finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!