Checking existence of Simulink model with full pathname
21 次查看(过去 30 天)
显示 更早的评论
Why is it that I can use the exist command to check if a model exists, but when I provide the fullpath name, it is only considered a file?
>> exist('test.mdl');
ans =
4
>> exist('C:\temp\test.mdl');
ans =
2
0 个评论
采纳的回答
madhan ravi
2020-6-10
https://www.mathworks.com/help/matlab/ref/exist.html#mw_0724f29e-7978-4e62-8c9d-4425e1c7a338 - you may be looking for isfile(...)
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!