How to open the simulink file using command

i have a simulink file named r.mdl. It is saved in desktop location. How can i open that file using command, in command window.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Nov. de 2016

5 votos

open_system() passing in the file name, including directory if it is not in your current directory.

1 comentario

Michael Bernard
Michael Bernard el 14 de Nov. de 2016
Editada: Michael Bernard el 14 de Nov. de 2016
open_system('name of file') Then press enter.Good luck :)

Iniciar sesión para comentar.

Más respuestas (1)

Zhe Chen
Zhe Chen el 10 de Mayo de 2020

1 voto

you can just type the name of the model file (without the extension name) on the command line. There is no need to use the function 'open_system'.

2 comentarios

Ravi
Ravi el 10 de Mayo de 2020
Thanks
Aik-Siong Koh
Aik-Siong Koh el 4 de En. de 2021
>> open_system('matlab/test/toolbox/simulink/sampletimes/explicitPartitioning/shared/models/mInvalidPartitionNissanPortNameConflict.slx')
Above works fine. But below doesn't. Please advise. Thanks.
>> matlab/test/toolbox/simulink/sampletimes/explicitPartitioning/shared/models/mInvalidPartitionNissanPortNameConflict
Execution of script matlab as a function is not supported:
/local-ssd/akoh/4544a/matlab/toolbox/matlab/general/matlab.m

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Nov. de 2016

Comentada:

el 4 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by