MATLAB Answers

Checking existence of Simulink model with full pathname

1 view (last 30 days)
Monika Jaskolka
Monika Jaskolka on 10 Jun 2020
Edited: madhan ravi on 10 Jun 2020
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 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 10 Jun 2020

  2 Comments

Monika Jaskolka
Monika Jaskolka on 10 Jun 2020
I am using R2016b, which does not support this function.

Sign in to comment.

More Answers (0)

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by