Checking existence of Simulink model with full pathname

14 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

madhan ravi
madhan ravi il 10 Giu 2020
  2 Commenti
Monika Jaskolka
Monika Jaskolka il 10 Giu 2020
I am using R2016b, which does not support this function.
madhan ravi
madhan ravi il 10 Giu 2020
Modificato: madhan ravi il 10 Giu 2020
Or you could use cd(...) and then use exist(...)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Prodotti


Release

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by