previousfile
Information on previous file in file-set
Syntax
Description
Examples
Input Arguments
Output Arguments
Tips
The
previousfilefunction returns an error if no files have been read from theFileSetobject. To avoid this error, usepreviousfilealong withhasPreviousFileandreset. ThehasPreviousFilemethod checks if a file still remains in theFilesetobject, while theresetmethod resets the internal pointer to the beginning of theFilesetobject.
Version History
Introduced in R2020a