Need to resample a 3D data matrix
古いコメントを表示
Hi, I need to resample a 3d data matrix via function
The matrix are from a starting point 4096x20x11 meaning samples x signal x points. What I need is to resample the first dimension turning that 4096 into 2048, 1024 etc without touching the other two dimensions
I tried with resampling using the function resample this way:
function [resampled_signals] = resample(data,orig_fs,target_fs)
[p,q] = rat(target_sr/orig_sr);
resampled_signals = resample(data,p,q,'Dimension',1);
end
I keep receiving the prompt
"Error using resample
Too many input arguments"
And I don't know what else to do. Thx in advance.
3 件のコメント
Stephen23
2022 年 8 月 17 日
function .. = resample(..)
.. = resample(..);
end
You have written a recursive function (one that calls itself). Is that intentional?
David Alarcia
2022 年 8 月 17 日
David Alarcia
2022 年 8 月 17 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!