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

조회 수: 5 (최근 30일)
Kamran Awan
Kamran Awan 2022년 10월 20일
답변: Fangjun Jiang 2022년 10월 24일
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.
---------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2022년 10월 24일
If your model name is 'codetrial', then it should be sim('codetrial').

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by