How can I get rid of error--'Model' Parameter must be a character vector
24 次查看(过去 30 天)
显示 更早的评论
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.
---------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
0 个评论
回答(1 个)
Fangjun Jiang
2022-10-24
If your model name is 'codetrial', then it should be sim('codetrial').
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!