Is it possible to resample uniform data with a variable sampling frequency?
6 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am working on trying to replicate a synchronous resampling algorithm in matlab. One of the steps in the algorithm calls for you to resample your 1D signal with a variable sampling frequency. Thus, I am trying to use the resample function in matlab to do this,
y = resample(x,p,q)
However, for my needs, I need q to be a vector of numbers instead of a single integer. That way, each entry of the resampled signal vector, y, will be resampled with a slightly different resampling factor.
Is it possible to do something like this in Matlab? Could anyone kind of point me in the right direction if so? (If you need any additional details or data, I can provide it).
Thanks in advanced.
2 件のコメント
Adam Danz
2019 年 5 月 5 日
"...That way, each cell of the resampled signal, y, will be resampled with a slightly different resampling factor."
The output 'y' of resample() is a vector or matrix. You mentioned that 'y' is a cell. If your input 'x' are different sets of data, possibly stored in a cell array, one method would be to use a for-loop where you can specify the resampling factor for each iteration.
回答 (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!