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

21 Ansichten (letzte 30 Tage)
Kamran Awan
Kamran Awan am 20 Okt. 2022
Beantwortet: Fangjun Jiang am 24 Okt. 2022
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.
---------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------

Antworten (1)

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

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by