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

12 ビュー (過去 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 Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by