taking computing of the divergence load F outside of hexa
[wrf-fire-matlab.git] / util1_jan / read_array_2d.m
blob3fccf2de8746e2be1785db54966c5be6b5f3458e
1 function a=read_array_2d(filename)
2 % a=rad_arrray_2d(filename)
3 % read 2d matrix written by write_array_2d
4 d=load(filename);
5 m=d(1);
6 n=d(2);
7 if length(d)~=m*n+2,
8     error('wrong number of terms in the file')
9 end
10 a=reshape(d(3:end),n,m)';
11 end