Main Content
matlab.unittest.constraints.IsFile Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if value is file
Description
The matlab.unittest.constraints.IsFile
class provides a constraint to test
if a value represents a file.
Creation
Description
c = matlab.unittest.constraints.IsFile
creates a
constraint to test if a value represents a file. The constraint is satisfied by a string
scalar or character vector that specifies the path to an existing file. The value can be a
relative path, but the relative path must be in the current folder. Otherwise, the value
must be a full path. The path to the file must include the file extension.
Examples
Version History
Introduced in R2018a