<< ftell | Stream manager | load >> |
count = fwrite(fid, data) |
count = fwrite(fid, data, precision) |
count = fwrite(fid, data, precision, skip) |
count = fwrite(fid, data, precision, skip, arch) |
count = fwrite(fid, data, precision, arch) |
a file descriptor
data to write
class of values to read
number of bytes to skip
a string specifying the data format for the file.
-1 or number of elements written
Write data in binary form to the file specified by the file descriptor fid.
characters encoding uses fopen parameter.
supported architecture:
native , n: format of the current machine.
ieee-be, b: IEEE big endian.
ieee-le, l: IEEE little endian.
A = rand(3,1)
fileID = fopen([tempdir(), 'doubledata.bin'],'w');
fwrite(fileID, A,'double');
fclose(fileID);
fileID = fopen([tempdir(), 'doubledata.bin'],'r');
R = fread(fileID, 'double')
fclose(fileID);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET