1 function a=read_array_m(f,num1,num2);
\r
2 % a=read_array_m(f,num1,num2)
\r
3 % read array produced by matching call write_array_m
\r
4 % in module_fr_sfire_util.F
\r
7 % read array from file f
\r
11 if exist('num1','var'),
\r
12 if ~exist('num2','var'),
\r
15 f=[file_name(f,num1,num2),'.txt'];
\r
29 fprintf(1,'matrix size %i:%i %i:%i %i:%i from file %s\n',its,ite,jts,jte,kts,kte,f)
\r
31 error(sprintf('incorrect file length, should be %i',s))
\r
33 a=reshape(b(7:s),[m,n,o]);
\r