R2017a bug?, resample

조회 수: 1 (최근 30일)
hamed amini
hamed amini 2017년 10월 3일
댓글: hamed amini 2018년 4월 4일
I get an error trying to run the following example from the help page in Matlab R2017a.
-----------------------------------------------------------------------------
fs = 10;
t1 = 0:1/fs:1;
x = t1;
y = resample(x,3,2);
t2 = (0:(length(y)-1))*2/(3*fs);
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
Error in firls (line 179)
b=[b0; b];
Error in resample>uniformResample (line 208)
h = firls( L-1, [0 2*fc 2*fc 1], [1 1 0 0]).*kaiser(L,bta)' ;
Error in resample (line 104)
[varargout{1:max(1,nargout)}] = uniformResample(varargin{:});
  댓글 수: 4
Alexandre HYAFIL
Alexandre HYAFIL 2018년 4월 3일
Hi Hamed,
I am encountreing the same error on R2017a (on PC). Did you find out where it comes from ?
hamed amini
hamed amini 2018년 4월 4일
Hi Alexandre,
I think at the time, I used another way to resample. I tested the same code today on R2017a and it works now .... strange, Sorry for not being helpful.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by