Documentation of pdo_statistics2


Global Index (short | long) | Local contents | Local Index (short | long)


Cross-Reference Information

This script calls

Listing of script pdo_statistics2


clear
data
load ML_SLP_eof_npac.mat; 
rslppc = rpcs;
lslppc = lpcs;
load ML_SST_eof_npac.mat; 
rsstpc = rpcs;
lsstpc = lpcs;
back
num = 1;
lags = -10:10;
for i = 1:length(lags);
  a(i) = corr(rslppc(:,num), rsstpc(:,num), lags(i));
  b(i) = corr(lslppc(:,num), lsstpc(:,num), lags(i));
end
figure(2); clf; fo(1);
sptalk(4,2,1);
  bar(lags, -a);
  axis([min(lags-1) max(lags+1) -0.35 1.1]);
  set(gca, 'XTick', -20:5:20, 'YTick', -1:.25:1);
  grid on
  xlabel('SLP leads SST   |   SST leads SLP');
sptalk(4,2,2); 
  bar(lags, -b);
  axis([min(lags-1) max(lags+1) -0.35 1.1]);
  set(gca, 'XTick', -20:5:20, 'YTick', -1:.25:1);
  grid on
  xlabel('SLP leads SST   |   SST leads SLP');