How can I get rid of error--'Model' Parameter must be a character vector

47 visualizaciones (últimos 30 días)
Hello all,
I'm trying to run a simulink model using 'sim(model)' command but I get the error ''Model' Parameter must be a character vector'.
I dont know what the problem is. Can anyone help me solve this.
---------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 24 de Oct. de 2022
If your model name is 'codetrial', then it should be sim('codetrial').

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by