User`s guide
fclose
Purpose Close open target PC file(s)
Syntax MATLAB command line
fclose(filesys_obj,file_ID)
filesys_obj.fclose(file_ID)
Arguments
filesys_obj
Name of the xpctarget.fs file system object.
file_ID
File identifier of the file t o clos e .
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 an d filetable ). You cannot have more than
eight f iles open in the file system.
Examples Close the open file identified by the file identifier h inthefilesystem
object
fsys.
fclose(fsys,h) or fsys.fclose(h)
See Also xPC Target file object methods fopen, fread, filetable,andfwrite.
MATLAB
fclose function.
18-15