diff scripts/signal/filter2.m @ 11469:c776f063fefe

Overhaul m-script files to use common variable name between code and documentation.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 12:41:21 -0800
parents 693e22af08ae
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/signal/filter2.m	Sun Jan 09 21:24:43 2011 +0100
+++ b/scripts/signal/filter2.m	Sun Jan 09 12:41:21 2011 -0800
@@ -43,7 +43,7 @@
 ## 2001-02-08 
 ##    * initial release
 
-function Y = filter2 (B, X, shape)
+function y = filter2 (b, x, shape)
 
   if (nargin < 2 || nargin > 3)
     print_usage ();
@@ -52,6 +52,7 @@
     shape = "same";
   endif
 
-  [nr, nc] = size(B);
-  Y = conv2 (X, B(nr:-1:1, nc:-1:1), shape);
+  [nr, nc] = size(b);
+  y = conv2 (x, b(nr:-1:1, nc:-1:1), shape);
 endfunction
+