Need to resample a 3D data matrix

조회 수: 17 (최근 30일)
David Alarcia
David Alarcia 2022년 8월 17일
댓글: David Alarcia 2022년 8월 17일
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
David Alarcia
David Alarcia 2022년 8월 17일
nope but now that i realize that, which is pretty silly on my part i will change the original function and see if it works. Thx for pointing that out.
David Alarcia
David Alarcia 2022년 8월 17일
Solved THX!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by