From: <car...@us...> - 2012-08-15 13:15:18
|
Revision: 10877 http://octave.svn.sourceforge.net/octave/?rev=10877&view=rev Author: carandraug Date: 2012-08-15 13:15:12 +0000 (Wed, 15 Aug 2012) Log Message: ----------- fir2: replace more calls to soon to be deprecated usage Modified Paths: -------------- trunk/octave-forge/main/signal/inst/fir2.m Modified: trunk/octave-forge/main/signal/inst/fir2.m =================================================================== --- trunk/octave-forge/main/signal/inst/fir2.m 2012-08-15 12:07:12 UTC (rev 10876) +++ trunk/octave-forge/main/signal/inst/fir2.m 2012-08-15 13:15:12 UTC (rev 10877) @@ -70,7 +70,7 @@ if nargin < 6, window=w; endif if isempty(window), window=hamming(n+1); endif if !isreal(window) || ischar(window), window=feval(window, n+1); endif - if length(window) != n+1, usage("window must be of length n+1"); endif + if length(window) != n+1, error ("fir2: window must be of length n+1"); endif ## Default grid size is 512... unless n+1 >= 1024 if isempty (grid_n) @@ -136,6 +136,7 @@ else b = b' .* window; endif + b = b' endfunction %% Test that the grid size is rounded up to the next power of 2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |