Home > utility > binIntFileWrite.m

binIntFileWrite

PURPOSE ^

binIntFileWrite: Write an binary file of 4-byte integers

SYNOPSIS ^

function binIntFileWrite(vec, fileName)

DESCRIPTION ^

 binIntFileWrite: Write an binary file of 4-byte integers
    Usage: binIntFileWrite(vec, fileName)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function binIntFileWrite(vec, fileName)
0002 % binIntFileWrite: Write an binary file of 4-byte integers
0003 %    Usage: binIntFileWrite(vec, fileName)
0004 
0005 %    Roger Jang, 20050923
0006 
0007 fprintf('Saving "%s"...\n', fileName);
0008 fid = fopen(fileName, 'wb');
0009 fwrite(fid, vec, 'integer*4');
0010 fclose(fid);

Generated on Tue 01-Jun-2010 09:50:34 by m2html © 2003