Checking existence of Simulink model with full pathname

10 ビュー (過去 30 日間)
Monika Jaskolka
Monika Jaskolka 2020 年 6 月 10 日
編集済み: madhan ravi 2020 年 6 月 10 日
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

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 10 日
  2 件のコメント
Monika Jaskolka
Monika Jaskolka 2020 年 6 月 10 日
I am using R2016b, which does not support this function.
madhan ravi
madhan ravi 2020 年 6 月 10 日
編集済み: madhan ravi 2020 年 6 月 10 日
Or you could use cd(...) and then use exist(...)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaming Conventions についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by