how to interface m file and simulink model?

when i am using sim command, i shows an error that, Error using newprojectfile (line 29) Unable to load block diagram 'new_project.mdl'
and In lin 29 k=sim('new_project.mdl') is there. is there any error in syntax

Respuestas (1)

Ilham Hardy
Ilham Hardy el 29 de En. de 2016

0 votos

Do you have this simulink model 'new_project.mdl' in your current/active folder?

1 comentario

Ponraj raj
Ponraj raj el 30 de En. de 2016
thanks for your response.. i found the problem with data import/export and also cleared that. now its running good.

Iniciar sesión para comentar.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Centro de ayuda y File Exchange.

Preguntada:

el 29 de En. de 2016

Comentada:

el 30 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by