About sampling rate of a signal

조회 수: 9 (최근 30일)
Hari Ijjada
Hari Ijjada 2019년 9월 21일
댓글: Hari Ijjada 2019년 9월 21일
sampling rate =12500
no of samples =25000...
i want to increase the sampling rate by factor of 2 means 12500 to 25000...How can i do this without changing the number of sample ? is it possible to change the sampling rate of signal with out chaning the no of samples..?

채택된 답변

Walter Roberson
Walter Roberson 2019년 9월 21일
You can just start using the data as if it were the higher sampling rate. However, by doing so you raise the frequency of the samples; in the case of audio, the effect would as if the original source had been one octave higher than it really was. It is valid, for example, to do
[samples, Fs] = audioread('YourFile.wav');
sound(samples, 2*Fs) %will play at double the original pitch
Somehow I suspect that is not your intention. I suspect that for your purpose the answer is NO.
Consider: 25000 samples at 12500 samples per second is 2 seconds. If you double the sampling rate without changing the number of samples, then you would be wanting 25000 samples/s and you would still have 25000 samples. Clearly 25000 samples at 25000 samples/s can only take 1 seconds, not the 2 seconds of the original. If you wanted 2 seconds of output at 25000 samples per second, you would need 50000 samples, not the original 25000 samples.
  댓글 수: 1
Hari Ijjada
Hari Ijjada 2019년 9월 21일
Thankyou...i already got the output...but your second paragraph cleared my another doubt...

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by