Frequency and Sampling Frequency

조회 수: 23 (최근 30일)
Ban Coder
Ban Coder 2019년 10월 23일
댓글: Star Strider 2019년 10월 23일
Which is the frequency of a tone heard when played with twice the original sampling frequency?
For example, we have this tone:
>> fs=24000; % Sampling frequency
>> t=0:1/fs:1;
>> x=cos(2*pi*1000*t); % frequency = 1000 Hz
>> sound(x, fs);
There we see that the frequency is 1000 Hz, but if we play the tone with twice its sampling frequency:
>> sound(x, 2*fs);
Which is the frequency of the tone then?

채택된 답변

Star Strider
Star Strider 2019년 10월 23일
This is more a philosophical question than a mathematical one.
The frequency of the original signal remains ‘fs’ regardless, The frequency of the generated tone is whatever is passed to the sound function, here either ‘fs’ or ‘2*fs’.
At least that is the way I interpret it.
  댓글 수: 2
Ban Coder
Ban Coder 2019년 10월 23일
I get it!! Thanks a lot!!
Star Strider
Star Strider 2019년 10월 23일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by