%FWRITE Write binary data to file.
%   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 in column order.  COUNT is the number
%   of elements successfully written. 
%
%   FID is an integer file identifier obtained from FOPEN, or 1 for
%   standard output or 2 for standard error.
%   
%   PRECISION controls the form and size of the result.  See the list
%   of allowed precisions under FREAD.  If either 'bitN' or 'ubitN' is
%   used for the PRECISION then any out of range value of A is written
%   as a value with all bits turned on.
%
%   COUNT = FWRITE(FID,A,PRECISION,SKIP) includes an optional SKIP
%   argument that specifies the number of bytes to skip before each
%   PRECISION value is written. With the SKIP argument present, FWRITE
%   skips and writes a value, skips and writes another value, etc.
%   until all of A is written.  If PRECISION is a bit format like
%   'bitN' or 'ubitN' SKIP is specified in bits. This is useful for
%   inserting data into noncontiguous fields in fixed length records.
%
%   For example,
%
%       fid = fopen('magic5.bin','wb')
%       fwrite(fid,magic(5),'integer*4')
%
%   creates a 100-byte binary file, containing the 25 elements of the
%   5-by-5 magic square, stored as 4-byte integers.
%
%   See also FREAD, FPRINTF, SAVE, DIARY.

%   COUNT = FWRITE(...,MACHINEFORMAT) also accepts a MACHINEFORMAT
%   parameter (see FOPEN for details).

%   Copyright 1984-2002 The MathWorks, Inc. 
%   $Revision: 5.12.4.1.2.1 $  $Date: 2005/01/08 23:41:44 $
%   Built-in function.
