Checking existence of Simulink model with full pathname

11 visualizaciones (últimos 30 días)
Monika Jaskolka
Monika Jaskolka el 10 de Jun. de 2020
Editada: madhan ravi el 10 de Jun. de 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

Respuesta aceptada

madhan ravi
madhan ravi el 10 de Jun. de 2020
  2 comentarios
Monika Jaskolka
Monika Jaskolka el 10 de Jun. de 2020
I am using R2016b, which does not support this function.
madhan ravi
madhan ravi el 10 de Jun. de 2020
Editada: madhan ravi el 10 de Jun. de 2020
Or you could use cd(...) and then use exist(...)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Naming Conventions en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by