Menu

[09bd5b]: / matlab / write_binary.m  Maximize  Restore  History

Download this file

6 lines (6 with data), 197 Bytes

1
2
3
4
5
6
function write_binary( m, filename );
% write matrix or vector to file in binary format (double)
fid = fopen(filename, 'wb');
nel = size(m(:),1);
fwrite(fid, m(:), 'double');
fclose(fid);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.