matlab.unittest.constraints.IsFile 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.BooleanConstraint
测试值是否为文件
描述
matlab.unittest.constraints.IsFile
类提供一个约束来测试值是否表示文件。
创建对象
描述
c = matlab.unittest.constraints.IsFile
创建一个约束来测试值是否表示文件。指定现有文件路径的字符串标量或字符向量满足该约束。该值可以是相对路径,但相对路径必须在当前文件夹中。否则,该值必须为完整路径。文件路径必须包括文件扩展名。
示例
版本历史记录
在 R2018a 中推出