Skip to content
Snippets Groups Projects
Commit 57c31dff authored by marwan's avatar marwan
Browse files

corrected XCF calculation

parent 9f635848
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,11 @@ function out=crqad(varargin) ...@@ -63,7 +63,11 @@ function out=crqad(varargin)
% Nonlinear analysis of bivariate data with cross recurrence plots, % Nonlinear analysis of bivariate data with cross recurrence plots,
% Phys. Lett. A, 302, 2002. % Phys. Lett. A, 302, 2002.
% Copyright (c) 2002-2007 by AMRON % Copyright (c) 2008-2009
% Norbert Marwan, Potsdam Institute for Climate Impact Research, Germany
% http://www.pik-potsdam.de
%
% Copyright (c) 2002-2008
% Norbert Marwan, Potsdam University, Germany % Norbert Marwan, Potsdam University, Germany
% http://www.agnld.uni-potsdam.de % http://www.agnld.uni-potsdam.de
% %
...@@ -71,6 +75,9 @@ function out=crqad(varargin) ...@@ -71,6 +75,9 @@ function out=crqad(varargin)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 2.8 2007/07/18 17:18:44 marwan
% integer values in the arguments supported
%
% Revision 2.7 2007/05/15 17:33:13 marwan % Revision 2.7 2007/05/15 17:33:13 marwan
% new neighbourhood criterion: fixed RR % new neighbourhood criterion: fixed RR
% %
...@@ -304,7 +311,7 @@ if nargout, XCF=xcf(x1,x2,w,1); end ...@@ -304,7 +311,7 @@ if nargout, XCF=xcf(x1,x2,w,1); end
if ~nargout if ~nargout
subplot(2,2,1) subplot(2,2,1)
clim=1; clim=1;
xcf(x1,x2,w) xcf(x1(:,1),x2(:,1),w)
set(gca,'fonta','i') set(gca,'fonta','i')
xlabel('Lag'), axis([-w w -clim clim]) xlabel('Lag'), axis([-w w -clim clim])
ylabel('Cross Correlation') ylabel('Cross Correlation')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment