|  | 
 
| 
x
EDA365欢迎您登录!您需要 登录 才可以下载或查看,没有帐号?注册  . q4 a% b3 I" f* DMetToolbox工具箱简介:5 Q9 F! c+ Z( R6 x8 l
 
 6 F3 M  p- o9 L. c9 O% a1 风矢量图:/ i& ?$ F; v6 \
 + w3 I/ V7 D; b  F1 _
 clc;clear;close all
 5 ?# b5 V! M! a  V2 X# Q- s[x,y] = meshgrid(70:10:140,15:10:55);* r0 h* I5 B2 V; Z  X2 Y% |. o3 o' q
 u = cos(x).*y*10;/ [# w) j% X; I' w
 v = sin(x).*y*10;6 ^2 l1 w$ _( i& @7 ^0 ?
 figure(1);
 " K) X2 E: _" |/ w% % m_proj('Equidistant Cylindrical','long',[70 140],'lat',[15 55]);
 , Q; s  b* @/ ^5 u% [/ O% m_proj('lambert','lon',[70,140],'lat',[15,55]);
 # g3 s/ n- C, `% a% ma=shaperead('F:/RMeteoInfo/data/map/bou2_4l.shp');
 5 _- R; E1 D9 M0 b1 l! O, L5 E0 I% % m_line( [ma(:).X], [ma(:).Y],'color',[0.5,0.5,0.5]);%绘制范围内的地图
 4 s; Y5 [0 Q# P1 u% % m_line([ma(:).X],[ma(:).Y],'color','k');%绘制范围内的地图; T# e! J' e7 o8 c
 % m_plot([ma(:).X],[ma(:).Y],'color','k');%绘制范围内的地图
 , M0 d  f: ?9 h$ o% hold on
 ( L* S& E1 u% \* Q; `. ih=quiver(x,y,u,v,0.5,'r-');
 9 ~% G% Y# Z. {2 l5 X' f! Phl=quiverlegend(h,10);
 - W5 A6 f$ u4 @7 m* X$ L%设置x轴范围和刻度3 |  Y# J1 f' K1 W
 set(gca,'XLim',[70 140]);%X轴的数据显示范围
 9 n1 r' O# J* t! T' s  t* iset(gca,'XTick',[70:10:140]);%设置要显示坐标刻度! B; X+ k' k, E5 e
 set(gca,'XTickLabel',[70:10:140]);%给坐标加标签
 9 ?. g, P: s8 ~%设置y轴范围和刻度2 k( c( |" P# }- v
 set(gca,'YLim',[15 55]);%X轴的数据显示范围
 ! D8 h$ U) Y8 @4 p  b9 Cset(gca,'YTick',[15:10:55]);%设置要显示坐标刻度% {$ k2 ~+ Q- v4 ]' y# Y
 set(gca,'YTickLabel',[15:10:55]);%给坐标加标签
 & A$ L! A2 n; u$ m. P# k+ y3 h' p3 r% i( o
 
   3 O% Q! s; H3 Q9 n$ I
 " j- L! o6 T& |! C4 }
 4 T* C8 X; Z7 Q- W, B
 ! W" @7 P0 j8 C% D2 高版本m_map工具箱指南针&比例尺:& u; C; ?) h; j$ y- D
 
 8 `1 O8 }; t% Fclc;clear;close all7 |4 L$ I$ n' g
 m_proj('miller','lat',[-77 77]);   - [6 s& }- Q7 b, z3 Y: Z0 X
 m_coast('patch',[.7 1 .7],'edgecolor','none');
 n5 V9 a" q; `. em_grid('box','fancy','linestyle','-','gridcolor','w','backcolor',[.2 .65 1]);/ b" y0 Z; Q2 ?/ ^0 I; ^2 b
 m_ruler([.4 .9],.3,'tickdir','out','ticklen',[.007 .007]);* B% b1 k# O, p/ [' H3 i7 X
 % 需要更新m_map5 i- x3 R. l4 p. f" I8 [0 H
 % m_northarrow(76,48,0.8,'type',4,'aspect',1.5);
 6 Y" c$ g6 K& N, n4 U6 `4 G. Nm_northarrow(-125.4,49.7,.2,'type',2);
 & U  j4 b! ?$ {) \# C% northarrow(76,48,0.8,'type',4,'aspect',1.5);/ ]5 ?, N3 O8 P) |6 d* H
 title('Great Circle Routes','fontsize',14,'fontweight','bold');
 u* q- x8 `* S' V: ~& e' R5 jset(gcf,'color','w');   % Need to do this otherwise 'print' turns the lakes black
 q$ e; d2 A9 }: ?, H6 [* l1 {1 G  A' ^5 h) q+ M+ n9 P" F$ ]
 
  2 T4 {8 m2 ]4 {! u# e# ]3 M0 g # N" {. B9 h) Q/ y
 
 * Y: A7 g4 ]  @. U; {2 d: q7 Q4 `( X) h9 m* P
 3 利用Map Toolbox不同投影全球地形的绘制* f0 c* U4 Q2 N; X& \1 e
 1 G! c3 l3 J: H
 clc;clear;close all: z6 m+ l1 g% H5 I
 load etopo& }# v& y  E7 i1 d8 P
 load topo
 # l; A. X% H) z  B. F2 V8 ifigure(1);2 ]9 x! L* n: s: u. n
 ctopo=topo(90:160,50:160);$ z  ?/ w: ]$ _7 y
 clegend=[1 70 50];
 # D8 ?4 u2 o) N+ tworldmap(topo,topolegend);
 + ~6 K& u" P% f* smeshm(topo,topolegend);! M$ c1 x# o2 z4 C+ d' }* a) R
 dEMCmap(topo)/ x5 j* `5 |, @5 @
 axis off
 " c" T3 R: G1 msetm(gca,'Origin',[0 105 0])7 U5 K4 y+ C; Q  X+ L- Q7 I* m
 ptopo = topo; ptopo(topo<0) = 0;0 p5 Z& T- ~9 `0 B& y7 b
 ptopo = 100*ptopo/(6371*1000);
 : S& e. w  V+ n+ Q8 A' W. m4 sfigure(2);
 1 c# C, Y) ~) W: raxesm('MapProjection','ortho','Origin',[0 0 15])- I$ k, g' G  G& j3 d9 D6 T9 }
 meshm(topo,topolegend,size(topo),topo/10000);
 9 f: r- T9 A/ F. y! `shading interp) L, N& U+ l" i: R( b
 demcmap(topo)3 k: o% }" j8 k0 V, j8 ~  M$ H
 lightm(23.5,80,'Color',[1 1 0.2])0 F1 ]3 B$ r9 ]8 w. H8 p3 c
 material([.6 0.8 0]);3 F, C1 q/ Y! T9 z
 lighting phong0 G7 P% z( y# u, W# R/ G
 axis off
 ( q6 e0 a  B) q3 edaspectm('km',20000)7 X) N/ c* c8 V5 o2 W
 figure(3);/ M2 Y# E' U/ l6 C0 Y2 w
 axesm('MapProjection','globe','Origin',[0 105 0])
 ( w6 e; x4 l" ~meshm(topo,topolegend,size(topo),topo/100000);
 6 I. b: l" [7 b* ?shading interp
 # Y0 X" W3 h2 Q% v0 n. q% [lat,lon]=meshgrat(topo,topolegend);! z2 n4 i1 o  `8 n) Z. W& Q9 e
 % suRFm(lat,lon,topo,ptopo)
 3 }7 K* [* ]& T* B; ~8 bdemcmap(topo)
 ; |1 ?) j$ b- n9 D4 Vlightm(23.5,20,'Color','y')
 $ |. K, h7 d+ C7 U  _+ Pmaterial([.6 1 0]);
 8 m8 ]9 |; A( ]& t- rlighting phong
 : N4 Q) W- v& I9 laxis off: U- L% |# i5 P6 n) h- P
 view([200 0])
 " R5 f; y) L, p: R9 K" M/ iz=topo;2 a1 z) F! y7 Y3 m
 figure(4);: Z( i; }9 a% I; |5 j
 surf(z)+ [6 ^( C3 F/ U
 shading interp
 ' G/ K2 M9 G" @6 g) \" F+ {demcmap(z)
 6 ?) u+ I" @5 W- V) A+ L5 x5 u' t8 q( fview([0 90])
 2 F  x+ [1 g) T) u; paxis off
 9 C0 J, l2 A( H8 slight('position',[1 180 1000],'color','w')+ R/ f1 p# V, ]: p6 r7 f# j/ G
 material([0.6 1 0]);/ r9 ]" c5 F  b9 w* a
 lighting phong
 9 R8 A& z$ x' F
 3 ~% U5 _* P; ~
  k5 l/ M: Q1 k4 p1 z# d1 o 
 + L  h  e6 D( C- {
 3 R2 K- h8 }5 c8 i) V, _# Y8 }' c9 N# J- f* ]( p7 J' ~1 A
 4 利用uniteprv合并东北三省与内蒙四个区域
 & l% k& v  O5 \$ s
 * X: f/ W7 `; s, Y: ^, W) ~; mclc;clear;close all' m& m! B5 z8 [2 p
 load prvpatch;
 . n: Z6 n, I4 Jfigure+ G# ^+ P8 S# I" e3 X5 D
 hold on
 8 z8 b. Z: ?3 a4 X' ]# cwnprv={'内蒙','黑龙江','吉林','辽宁'};
 , @5 A( f5 s2 s7 m- [/ r; wnw=1;; r' T, z8 c5 ?/ o
 for i=1:384 A, y- _: Q1 `3 l- k# [5 F- P4 @
 if any(cellfun(@(x) ~isempty(strmatch(x,s(i).tag)),wnprv))0 W4 @5 {3 ?9 V, H7 j9 L
 disp([nw i])0 U, l. J# H; ^5 e2 E
 if nw==1
 - O  M; B" ^3 s$ @( B            long=s(i).long;! b, l) v$ B5 ?2 l: B" k
 lat=s(i).lat;
 $ m! c# L6 s& T5 u/ c' C% j$ ~: Q9 P: W        else
 " P2 h2 B. [* z  |# m& Y$ p# Q            [long lat]=uniteprv(long,lat,s(i).long,s(i).lat);) o6 _- g8 x# T" {: s
 end
 ( o% D, z0 b# b% f( i2 J6 P        nw=nw+1;! ?% |7 S( ?$ m* ]" w" t
 end  : \( r( f+ S* k+ ]$ C
 plot(s(i).long,s(i).lat)* ?' M% U9 ?8 ]1 I
 end/ Q/ |9 Y; G% e) R# m: B
 % [long lat]=pactpt(long,lat,0.1);6 q6 `! v3 U6 B2 L, G5 E
 patch(long,lat,'m');9 t9 _! J2 {; p1 R* T% V
 mapnorm;
 1 D5 g5 L( B7 G
 1 B+ x8 n9 l; F- b
  0 [  f" n  V5 |/ _( h 
 2 P1 [/ h6 P: l5 C  A8 |* ~- a0 M
 % `) ~, ?" m1 ?
 5 填充带条纹的等值线2 R+ f, ?5 |  m! X# ^! J/ C: q
 3 K  d1 f  z+ L7 g' T( Z. {7 B3 ]3 P
 clc;clear;close all2 r$ S" }1 Q4 h! s- I) S( I! C
 z=peaks;
 9 ~5 Y2 D/ b* v' n# U, i  w. Ox=1:size(z,2);- V6 N& @5 \/ @
 y=1:size(z,1);
 4 `1 z4 w2 S1 A8 u) Bcv=-8:2:8;  j' }9 a1 ?: K1 u0 `8 s. k7 g% Q
 cmap=cusjet(10);8 k6 h0 j" x2 I" j5 y; B
 ifirst=0;
 & ]9 J+ @8 U8 }$ a2 V# Ondelta=1;
 7 N. {- d( Q7 Q1 W5 Yiswbg=true;
 7 u  h% ]% E: ?! D! |bardir='horiz';
 : g, G/ s* J9 B. v- @% a0 M% csty={'r.-',linewidth,markersize,linecolor,markeredgecolor,markerfacecolor};1 a% _" A) f! a% z) f
 % tex={ctex,nnl,ldir,csty}
 # b4 ~' T, [" ~! B  ~& |; Icsty={'r.-'};# M2 R5 E0 a$ A! g  Y
 tex={-4,[100 80],1,{'r:'}; 2,[100 80],3,{'b-'}};
 ( i6 ^3 X0 G- f+ P8 wfigure
 3 g& q2 L# M8 Y: X- x[C,h,hb]=freecontourf2(x,y,z,cv,cmap,ifirst,ndelta,iswbg,bardir,tex);
 + k5 f" X# p( L5 C9 [/ C
 $ w$ W, p; h, @+ W* b) N# o& c
   ; n& Q& f; L7 Q; u  ~: n' a/ b) }0 ~, ^: A/ P* U, a
 
 # G* b6 _& L* u" M$ d% V. m/ s2 d7 a, n
 6 空间插值&白化
 , ~9 j& W; z& C3 M& o* L+ J3 M& i  j! T, |: @2 S6 M
 clc;clear;close all
 # r& c$ N' X- @8 sload('mdata/chnmon756.mat');
 " I$ D7 S/ }! l) }4 N! C) I. Y% D$ nidate=find(stat.date>=19881200&stat.date<=19981100);1 ^2 }5 ~* t7 j
 x=stat.long;
 0 [+ Z# u1 ~, `y=stat.lat;* K% [5 _  J, c- f+ R
 z=stat.prec(idate,:);
 . T# c1 A9 h1 x; rz=mean(z)';%mm/day2 y, A6 I9 O: a" J# @2 U' o4 s
 lo=[72:1:137];
 1 f# t0 _( W# Dla=[15:1:55];
 - i% L% K6 p4 `/ x6 E- M[clo,cla]=chngon('g');5 I# ?: }3 [: B; Q9 Z( d
 [lo2 la2]=meshgrid(lo,la);
 % d# r# l' \- Jin=inpolygon(lo2,la2,clo,cla);: k+ z  m0 Z! F( r- m" |3 M
 cv=[0.1 1:5];7 J! \- G! ^6 m4 P. m
 % cv=[0:5];4 D9 W4 c, Q  p3 g
 % cmap=nclcmap(142,numel(cv)+1);! y' u, G! o4 N% x; n# K
 load('colorbar-mat/rainbow.mat');, x# c; F! {+ D. R4 V
 cmap=rainbow;
 9 q* i. Z2 j( c' i, Y* V! azi=cus_griddata(x,y,z,lo,la,'v4');1 A! |+ N/ R5 s. U) |* S! y7 w2 Q
 figure
 8 G/ R2 w! y9 S/ v! n* D& u7 }hold on
 5 ^$ [6 Q3 n/ \0 z% `$ k% [C,h,hb]=freecontourf(lo,la,zi,cv,cmap,true);; {1 l$ o1 u$ Z- ]" |
 [C,h,hb]=freecontourf(lo,la,zi,cv);5 c" h- _/ c, N, m* e, u! k
 set(h,'edgecolor','none')
 ! _+ J7 H& Q3 J5 Y9 H1 rset(h,'linew',2)
 ) b/ r- y6 v7 T' D: ^* f$ w* ichnmask2(lo,la,'g'): @/ R- H1 a2 V
 hc=mapnorm(lo([1 end]),la([1 end]),false,false,true,true,true,0,[10 5],1,'g',2);
 - k' v2 i' x) B3 a, l) [$ o7 Wgrid off+ U+ L. k6 c$ T9 L8 k3 N6 b% r- L0 L% N
 set(gcf,'pos',[89   200   520   445])
 / F1 S( F+ J* t, `set(gca,'pos',[0.0913    0.1504    0.8747    0.7730]);
 3 K0 |4 i+ H& t/ q) sssaxes(4,0.14,[3 4 1.6 1.1 1.35 0.98],'nanhai2',2);
 " P) D7 ~2 u5 V, X! ]9 oset(gca,'linew',2);5 t: V0 w: x4 [  S
 set(gca,'fontsize',14)
 & v+ T" b  `* ?) S; A- p
   - d1 j, L- H7 y- ], Y+ K. N, Y% f
 ( M  ?& t1 }- f( |. f, K! Y3 |' P( u& @+ C. g
 , q8 o4 p0 _& C' v, Y  _: m5 Y3 p  Z
 / F/ E9 `, A, k# `
 7 WRF模拟嵌套区域绘制
 ( R9 m$ g3 ]* T* A7 M0 a2 p! C  z
 ( X6 z+ C  T8 L3 ~clc;clear;close all; S/ s7 F8 M3 w! `" L" r( O
 si=[1,   107,  94,  47];
 ' L+ R% A. @  osj=[1,   47,  37,  122];- j4 p* T5 u/ D# I$ u
 nx=[179 169 151 145]; %nested grid number should be 3n+1
 . b, O$ u: n$ qny=[161 199 157 151];9 `: X; z6 i0 `! O* o9 ]
 dxy=[30000 10000 3333.33 3333.33];
 - l4 p+ |6 N. W( c) G  x9 [grat=[1 1/3 1/3 1/3];
 2 R& b" K$ x9 {, v4 G1 X/ l- ppid=[1 1 2 2];  t/ z& D/ N5 [
 % param=[nx(1) ny(1) 100 35 30 60 36000];
 / P# Z8 l9 l. S% param=[nx(1) ny(1) 105 35 (nx(1)+1)/2 (ny(1)+1)/2 30 60 115 dxy([1 1])];
 / O+ V; v8 I- ~* xparam=[nx(1) ny(1) 102 36.5 (nx(1)+1)/2 (ny(1)+1)/2 30 60 102 dxy([1 1])];# B. s2 z* i% {( G' i' \
 [x y]=wrf_nestxy(si,sj,nx,ny,grat,pid);
 ( i+ Z+ e$ J9 A, @5 X9 a0 p! [nb=10;
 , q' [  b9 s% N0 jnbb=nb*[1 1/3];
 + D4 D) W! K. s. V, t, G8 gfigure,hold on
 0 t% z- j) v0 X5 c& b) L( ^5 smaplam(param,false,false,true,true,true,0,[10 5],3,'h',2,':');
 / n( w' b. W, R9 W/ @for i=2:length(pid). f1 K8 l2 H5 D9 j, H
 [xx yy]=meshgrid(x{i},y{i});
 ' T1 E/ S: Z, `    xx2=[xx(1,:) xx(:,end)' xx(end,end:-1:1) xx(end:-1:1,1)'];9 u1 A4 Q% N# \* h, J
 yy2=[yy(1,:) yy(:,end)' yy(end,end:-1:1) yy(end:-1:1,1)'];/ A' {0 X/ @# k
 plot(xx2,yy2,'m','linew',2)
 % L, J# h& [8 |$ d+ e" j# Z8 tend( |0 u: G& ?! v2 a3 q
 [xx yy]=meshgrid(x{1},y{1});1 {7 q/ e0 C, G% F2 K7 A
 xx2=[xx(1,1)+nbb(1) xx(1,end)'-nbb(1) xx(1,end)-nbb(1) xx(1,1)+nbb(1) xx(1,1)+nbb(1)];2 N4 V, G: g8 n8 @7 n5 p  M: d
 yy2=[yy(1,1)+nbb(1) yy(1,1)'+nbb(1) yy(end,1)-nbb(1) yy(end,1)-nbb(1) yy(1,1)+nbb(1)];
 # `' f8 a, ~' j$ s; K. i9 F& eplot(xx2,yy2,'b','linew',2)2 d8 R$ `: r2 e4 p$ V! f6 ~
 load prvpatch* o- B' b  o! Y, ^
 [clong clat]=polyjoin({s(1:34).long},{s(1:34).lat});
 # Y7 R* P- w2 I6 u[cx cy]=deg2grd(clong,clat,param);% L& B! K. n4 g/ u% g+ B
 plot(cx,cy,'k')1 P6 m2 s8 X5 S/ r" n: p  ~) v* ?
 f) l# O+ a; N5 z: x$ S4 c
 
   * e! j. G" c8 S( b! j( [" E
 3 M5 y- N" }+ o& P0 Y0 U9 W( N
 " a1 j% S: H1 |( [  r! q% h
 8 Analysis of power spectrum
 4 ?! Q: S: P, ?% y: W5 M* v8 Y1 S- o4 w8 \9 ]
 clc;clear;close all" p8 e/ D, s0 t
 % Analysis of power spectrum
 . K3 s$ y- a0 G0 O, P( m7 C# R% load enso_sst.mat
 # |6 o4 ^8 E- P6 yzsim=xlsread('data2.xlsx');
 : B: r: _, F4 j: T) Lzi=zsim(:,1);
 % o+ `8 H! @% u5 Ozi=zi-mean(zi); % must remove mean.4 C- ~. A# k6 o  B6 j0 M4 g
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%, z* @5 R9 F3 u
 %fft
 : u0 ^* [& w- c  ?' lFs = 1;              % Sampling frequency! |% l  s' w# |; u2 P" S8 T
 T = 1/Fs;                     % Sample time
 . q) e5 _! c5 x6 e+ X8 c0 EL = length(zi);               % Length of signal4 [: y+ B, `/ ^! B, J' K9 F1 T7 Q5 ~0 \
 t = (0:L-1)*T;                % Time vector
 " n. g6 h' V! gy=zi;
 9 K$ E9 {5 d' g' Z+ f5 _8 qfigure,hold on5 t. P3 B+ Z2 f) Y' m
 % NFFT = 2^nextpow2(L); % Next power of 2 from length of y3 y$ k9 U1 ?1 S+ x
 NFFT = L; % Next power of 2 from length of y9 ^+ I2 X4 O4 j
 Y = fft(y,NFFT);
 5 k( k- |$ c$ m/ _- g3 j4 sP=Y.*conj(Y)/NFFT; %power spectrum density
 7 `; X8 }2 y' X, dP=smooth(P,7);
 , f- @! C1 x( |7 ~! y; zf=Fs/2*(0:NFFT/2-1)/(NFFT/2);+ M/ i3 m5 h% c3 S( A
 P=P(1:NFFT/2);) X8 I+ J" P8 |* K5 ~1 ?
 df=1/NFFT;
 [6 x  n* T# c6 \( ~7 tsvar=(P(1)+P(end))*df/2+sum(P(2:end-1))*df;; X7 l: Z" e& ?# d
 svar0=var(y);
 7 ]$ z8 Z+ ^3 y# `& t6 bP=P/svar*svar0;% i0 Z, ~+ G" u% Y! u
 % Plot single-sided amplitude spectrum.
 `4 q% J3 X2 O9 d% c7 Uplot(f,P,'r')" k' t$ P* d* Y8 t0 ?! a
 title('Single-Sided Amplitude Spectrum of y(t)')  Z9 l) ]) G, E
 xlabel('Frequency (cycles/year)')/ ^. b% A7 S- ?' ]
 ylabel('Variance')3 Y5 Z! v# p. G  C1 K' ]( A* S
 2 o3 C- _: T3 L7 ~
 
   . {8 u4 X; ^. V
 7 A+ D9 \# I0 B
 & @, F' ^( ^3 W- Q9 P2 _- t' b
 3 U9 \* L' q! \, x% H9 Taylor图3 h, I/ E4 z( V5 L. ?: J
 & j$ \3 P2 I- l" ?8 K: z
 clc;clear;close all
 p- P0 u0 r3 _! d- Dzsim=xlsread('data2.xlsx');
 , Y- ~6 j. v( }9 t% Example for ploting taylor diagram
 8 x3 U+ j& A( ?8 O8 [% s6 \4 llss={ 'o','v','s','^','p','o','v','s','^','p','o','v','s','^','p','o','v','s','^','p','o'};
 ' j( n% a! Y# Nlcc=[1.0000         0         0. u: k/ ^" c" U: t
 0    0.8000         0
 h3 ]/ q3 `) T0 J4 E    1.0000         0         04 r" M6 x0 ]9 I
 0    0.9000    0.9000
 8 V. K; |4 _2 N0 w2 Y- v  j    1.0000         0    1.0000' f- T( A, e9 [) c" c- K' b
 1.0000    0.8000         0
 2 |( ~) V* X* I5 K) j    1.0000         0         02 e7 |  h2 {% m  @& B- U/ R
 0    0.8000         0
 + o. x* p4 O/ Y2 n+ y; R3 W    0         0    1.00009 h4 T0 g1 m8 v. e6 b# n8 V
 0    0.9000    0.9000
 . B. M" X$ @& b6 b& ?/ f6 n    1.0000         0    1.0000% B1 w5 w' ^2 X! d8 s
 1.0000    0.8000         0
 4 p7 @3 y2 S/ `4 a: X    0         0    1.0000- Y# f. s' Y1 C3 _  ?' ]5 Z5 ~
 0    0.8000         0
 m+ S- w8 {. h+ i0 a0 M9 j" c( i    0         0    1.0000
 ) N! e0 ]' {/ l) @    0    0.9000    0.9000
 * W0 |6 o' H. K) J; w) E0 G    1.0000         0    1.0000
 ; i) P4 V. B: q: K0 C/ l5 n, D8 Y    1.0000    0.8000         0
 7 H$ ?! E" [9 j1 F    1.0000         0         0% v  m7 e  \4 C% w
 0    0.8000         07 @$ K7 G$ c  [6 a. h' e
 0         0    1.0000];' t% I2 {3 ?, Q
 zobs=zsim(:,1);+ p& b7 @! Q- H! m9 Y/ Z
 zsim=zsim(:,1:end);
 ) e& ^7 b2 I0 E: L+ _% ostag=cellstr(num2str((1:size(zsim,2))'));
 * s) g9 o. }. Sstdd=std(zsim)/std(zobs);' C' h! C) \% r# L$ y
 ccorr=corr(zobs,zsim);$ n% S, W8 U4 r7 x$ ]0 q
 z1=zobs-mean(zobs);4 I) S0 g% q4 N1 p/ F
 z2=zsim-mean(zsim);
 ' s4 M& [8 z# O0 m  ^' i) qrmse=rms(z2-z1)/std(zobs);3 O8 V. p4 I) u2 U
 rmse2=sqrt(stdd.*stdd-2*stdd.*ccorr+1);. y: A. K5 `& z* u
 [hp,hp_std,hp_rmse,ht_corr,ht_rmse,hl]=TaylorDiag(zobs,zsim,lcc,lss,stag);% K; l4 [) u' p- s6 K- p9 V! p
 set(hp,'markersize',8);! |# {; U- s4 m
 set(ht_rmse,'color','k');1 h2 f, `6 n5 r. H) F6 D- E
 
 7 y. Y2 o7 H7 P0 F9 N- J" t& |
 " X$ n5 ^: D, q4 l8 c
  ' m) z6 T% [! _. F4 A* U $ Y$ X* N0 T/ s& b5 M
 
 | 
 |