|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
: c" W% J; L/ J; C: |+ Z
" g5 s- O! J0 y0 j0 m& E" ^clear;
$ w& O1 n' g( p- [* I; rx_len=144;
) a+ Y ~: ^0 j' p' d0 Dy_len=60;
' j( u0 @ `6 |! gz_len=17;
6 `% S" ^/ K" D" j4 ?0 k: Ot_len=854;% g3 x$ c" A7 X1 w
z_index=7;* b, u9 p5 j; K" a
x_index=120;7 d, a- n4 n f$ c8 W D: q2 T+ U# u
U! U B1 ~, w6 e* @9 h9 `% Y3 {z = ncread('rhum.mon.mean.nc', 'level');%z
; H- B( t9 p/ P0 }$ z3 E2 y4 x3 c- m6 By = ncread('rhum.mon.mean.nc', 'lat');%y4 I. [$ o3 a( v+ L( U' }
x = ncread('rhum.mon.mean.nc', 'lon');%x
! j, @( Q, q3 _! a) it = ncread('rhum.mon.mean.nc', 'time');%t
- G+ I" ]- r h# ~$ vrhum = ncread('rhum.mon.mean.nc', 'rhum');& d7 z5 c- m2 B" N) S5 H8 n
) t6 W6 x6 m' _8 iarray = zeros(x_len,y_len);
" {5 J3 t1 Q. vfor i = 30:y_len( L) Y. a1 e- u q9 H
for j = 1:t_len( _8 ]( s1 q% n3 w6 q+ U R
array(i,j)=rhum(x_index,i,z_index,j);* q* K$ [& _* X9 Z
end
7 ?+ ^) v+ P& z% l5 i8 ]# ^end
5 i4 \$ L: L& U7 D; L" q; |mesh(t,y,array)
* C: Q4 W6 L' H9 b L错误使用 mesh (line 79): Z) T' `) o) \/ n* P0 ^
数据维度必须一致。
) b1 _9 y' K. k想请问一下这个怎么改 ? |
|