Friday, 15 February 2013

signal processing - Matlab fir1 function error -



signal processing - Matlab fir1 function error -

i'm running matlab 2014a on linux , trying apply simple fir filter using fir1 function. maintain getting next error, no matter how seek build filter:

>>fir1(15,[0.1]) error using * inner matrix dimensions must agree. >>error in firls (line 80) cos_ints = [omega; sin((1:n)' * omega)]; >>error in fir1 (line 121) hh = firls(l-1,ff,aa);

i've used debugger go line of code, , looks it's trying multiply column vector of length(order), (1:n)', column vector, omega. doesn't create sense. fir1 function broken, or doing wrong? error occurs me if seek run examples given mathworks.

i guess matlab's firls function masked function of same name, in matlab's path , hence gets called fir1.

what when type :

which firls

? - should ends in \toolbox\signal\signal\firls.m

matlab signal-processing

No comments:

Post a Comment