How to resample a signal by a fraction
35 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have the time-domain received signal v(t) and I want to re-sample it at as v(t/(1+a)), where a is not an integer and it is in the order of ~10^-3. How can I do that in MATLAB, since the resample function requires that both P and Q be integer?
Thanks
0 件のコメント
採用された回答
Matt Kindig
2013 年 5 月 19 日
編集済み: Matt Kindig
2013 年 5 月 19 日
You could use interpolation instead. Something like this:
vnew = interp1( t, v, t/(1+a), 'linear');
You could use other interpolation approaches ('spline','cubic', etc.) as well, as appropriate.
その他の回答 (2 件)
David Barry
2013 年 5 月 17 日
I suggest you reciprocate your a variable and round it to the nearest integer. You then just need to make sure you get the arguments the correct way in the resample function.
y = resample(x,p,q) resamples the sequence in vector x at p/q times the original sampling rate
5 件のコメント
David Barry
2013 年 5 月 20 日
I mean having P and Q values of 1 and 1.0010 is the same as having P and Q values of 1000 and 1001.
Malcolm Lidierth
2013 年 5 月 19 日
Is this any help?
% SincResample returns the data convolved with a set of time-shifted windowed sinc functions, one for each of the samples [1..size(x,1)] in the input signal.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!