repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
utilities
[wrf-fire-matlab.git]
/
util1_jan
/
read_array_2d.m
blob
3fccf2de8746e2be1785db54966c5be6b5f3458e
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
12