From: fakhrul alam on
Hi all; I've been using my own Rayleigh fading simulator for a long time. Thought I would give rayleighchan a try; looks simple enough. However I'm getting this error message when I try this in the command window. The command is copied from MATLAB's help example. Any help would be appreciated. I'm using version R2008b.

c1 = rayleighchan(1e-5,130)
??? Error using ==> plus
Matrix dimensions must agree.

Error in ==> firls at 169
b = b + (F(s+1)*(m*F(s+1)+b1)*sinc(2*k*F(s+1)) ...

Error in ==> intfilt at 74
h=firls(n-1,F*2,M);

Error in ==> channel.interpfilter.initialize at 28
b = intfilt(R, M/2, freqMult);

Error in ==> channel.interpfilter.construct at 30
h.initialize;

Error in ==> channel.interpfilter.interpfilter at 10
h.construct(varargin{:});

Error in ==> channel.intfiltgaussian.construct at 54
h.InterpFilter = channel.interpfilter(KI(2), KI(3), s.NumChannels);

Error in ==> channel.rayleighfading.rayleighfading at 10
h.construct(varargin{:});

Error in ==> channel.multipath.construct at 74
h.RayleighFading = channel.rayleighfading(...

Error in ==> channel.rayleigh.rayleigh at 18
h.construct(v{:});

Error in ==> rayleighchan at 116
chan = channel.rayleigh(varargin{:});