resample

조회 수: 5 (최근 30일)
Raf K
Raf K 2012년 3월 25일
resample gives me this error randomly (for the same variable)
x is 166500 X 60 matrix y= resample (x,1,5) gives me inconsistently the following error:
Error using .* Matrix dimensions must agree.
Error in resample (line 75) h = p*firls( L-1, [0 2*fc 2*fc 1], [1 1 0 0]).*kaiser(L,bta)' ;
any suggestions ?
Thanks,
R

답변 (2개)

Wayne King
Wayne King 2012년 3월 25일
Hi R, Can you please tell us which version of MATLAB you are using. resample() is strictly mean to work on a sequence (a 1D vector), but it should resample the columns, so it should work with your matrix.
Can you confirm that you do not have a non-MathWorks' version of firls.m installed that precedes the Signal Processing Toolbox version on your path?
If you enter:
>>which firls
what is returned?
And please do give your MATLAB version.
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 3월 25일
The kaiser function also seems like a possibility and since p comes from the rat function, you should also check that.

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


Raf K
Raf K 2012년 3월 25일
Hi,
which firls returned: '/Applications/MATLAB_R2012a.app/toolbox/signal/signal/firls.m' matlab version: 2012a
Thanks a lot for your help.
R
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 3월 25일
This should be a comment to Wayne.

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

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by