fwrite

Purpose

Write binary data from a MATLAB matrix to a file.

Synopsis

count = fwrite(fid,A,'precision')

Description

count = fwrite(fid,A,'precision') writes the elements of matrix A to the specified file, translating MATLAB values to the specified precision. The data are written to the file in column order. fid is a integer file identifier obtained from fopen. count is the number of elements successfully written.

The 'precision' argument specifies the numeric precision of the data. See fread for a list of valid precision strings.

See Also

fclose, ferror, fopen, fprintf, fread, fscanf, fseek, ftell, sprintf, 
sscanf

(c) Copyright 1994 by The MathWorks, Inc.