read_binary_matrix.m 180 Bytes
Newer Older
Tilman Steinweg's avatar
Tilman Steinweg committed
1 2 3 4 5 6 7 8
function matrix=read_binary_matrix(nx,ny,matrix_file);

[fid,mess]=fopen(matrix_file,'r');
matrix_dummy=fread(fid,'float32');
matrix=reshape(matrix_dummy,ny,nx);
fclose(fid);

end