User`s guide
fclose
14-20
14fclose
Purpose Close one or more open target PC files
Syntax MATLAB command line
fclose(filesys_obj,file_ID)
filesys_obj.fclose(file_ID)
Arguments
Description Method of xpctarget.fs objects. From the host PC, closes one or more open
files in the target PC file system (except standard input, output, and error). The
file_ID argument is the file identifier associated with an open file (see fopen
and
filetable). You cannot have more than eight files open in the file system.
Examples Close the open file identified by the file identifier h in the file system object
fsys.
fclose(fsys,h) or fsys.fclose(h)
See Also xPC Target file object methods fopen, fread, filetable, and fwrite.
MATLAB
fclose function.
filesys_obj
Name of the xpctarget.fs file system object.
file_ID
File identifier of the file to close.