About sampling rate of a signal

11 次查看(过去 30 天)
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