Checking existence of Simulink model with full pathname

조회 수: 9 (최근 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 CenterFile Exchange에서 Naming Conventions에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by