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
Merge branch 'fixf'
[wrf-fire-matlab.git]
/
vis
/
read_array_m.m
blob
296494c64cf7d2b0f03229baedad00c917ed3574
1
function a=read_array_m(f);
\r
2
b=load(f);
\r
3
l=length(b);
\r
4
m=b(1);
\r
5
n=b(2);
\r
6
o=b(3);
\r
7
s=m*n*o+3;
\r
8
fprintf(1,'matrix size %i %i %i from file %s length %i should be %i\n',...
\r
9
m,n,o,f,l,s)
\r
10
if l~=s,
\r
11
error('bad format')
\r
12
end
\r
13
a=reshape(b(4:s),[m,n,o]);
\r
14
end