source: trunk/src/SIMULS_IRCAAM/eof_olr_noaa_annuel_jas_1_8.m @ 16

Last change on this file since 16 was 16, checked in by pinsard, 16 years ago

remove trailing blanks, split lines with multiple statements

File size: 539 bytes
RevLine 
[16]1%
[10]2
[16]3clear;
4close all;
5
[10]6fid=fopen('olrf1-8_annuel.dat','r');
7siz=25*17*28;
8v=fread(fid,siz,'float');
9fclose(fid);
[16]10olr=reshape(v,425,28);
11clear v;
[10]12
13% calcul de la matrice de covariance
14vaudou=zeros(425,425);
15for a=1:425;
16    for b=1:425;
17      clear e d covaria;
[16]18      e=olr(b,:);
19      d=olr(a,:);
[10]20      covaria=cov(e,d);
21      vaudou(a,b)=covaria(2,1);
22    end;
23end;
24
25% on diagonalise la matrice de covariance
26[C,L]=eig(vaudou);
27
28delete('eof_noaa_annuel_1_8.mat');
29save('eof_noaa_annuel_1_8.mat','C','L','olr')
Note: See TracBrowser for help on using the repository browser.