diff --git a/phasesynchro.m b/phasesynchro.m
index d9eaafdf652f5d1b9955c0d144c34ba6a293abe5..badd59900bc3dc4a818fcb9163e032ff0de3fc52 100644
--- a/phasesynchro.m
+++ b/phasesynchro.m
@@ -60,6 +60,9 @@ function CPRout = phasesynchro(varargin);
 % $Revision$
 %
 % $Log$
+% Revision 5.1  2008/01/25 12:47:25  marwan
+% initial import
+%
 %
 %
 %    Examples: a = sin((1:1000) * 2 * pi/67);
@@ -167,6 +170,7 @@ if isnumeric(varargin{1}) 		% read commandline input
      if size(x,1)==1, x=x'; end, if size(y,1)==1, y=y'; end 
      m=max([size(x,2) size(y,2)]);
      if w > size(x,1); w = size(x,1); end
+     if w > size(y,1); w = size(y,1); end
 
      if method==8 & (m*m0) > 1, 
        m0=1;