The value of 'filename' is invalid. It must satisfy the function: exist.

94 次查看(过去 30 天)
The value of 'filename' is invalid. It must satisfy the function: exist. getting this error while executing test case
  3 个评论
chrisw23
chrisw23 2023-3-7
..try this
myFilePath = "...SL_B007_27_DmeSensorSelection.xxx";
fInfo = System.IO.FileInfo(myFilePath);
if fInfo.Exists
...
end

请先登录,再进行评论。

回答(1 个)

Swaraj
Swaraj 2023-4-5
The error is coming because some test is trying to use a file which does not exist.
You can go through the exist function documentation for more details and check if all files that your test is using are present at the specified paths.
Also, you can check if all the files under use have names as per the standards.

类别

Help CenterFile Exchange 中查找有关 Outputs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by