필터 지우기
필터 지우기

Spectrogram of known frequency signal

조회 수: 1 (최근 30일)
GCats
GCats 2021년 5월 24일
답변: Walter Roberson 2021년 5월 27일
Hi all,
I need to generate a spectrogram for a frequency signal which I constructed by selecting only certain parts of diffrerent sine waves at different frequencies. In other words, I have a signal in the frequency domain but I do not have the time domain corrisponsent to input in
spectrogram(x)
. Can I generate a spectrogram from an already known frequency domain signal?
Thanks!
  댓글 수: 1
Nagasai Bharat
Nagasai Bharat 2021년 5월 27일
Hi ,
Can you let me know the problem you are facing in code for me to reproduce the issue?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 5월 27일
If you have a list of frequencies and corresponding amplitudes, then:
If practical, find the greatest common divisor (GCD) between the frequencies. If you can do that, then each frequency will be an integer multiple of the GCD. Divide each frequency by the GCD to get its multiple; call that list of multiples M and the corresponding amplitudes A .
Now create a vector,
temp(M) = A;
So for example if the 7th frequency was 4 times the greatest common divisor, then temp(4) would be assigned the amplitude associated with the 7th frequency.
Now construct
ix = [0, temp, fliplr(conj(temp))];
time_signal = ifft(ix);
And now you should be able to
spectrogram(time_signal, [], [], [], GCD)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by