How can I get rid of error--'Model' Parameter must be a character vector
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
---------------------------------------------------------------------------------------------------------------------
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1163078/image.png)
-----------------------------------------------------------------------------------------------------------------------
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1163083/image.png)
--------------------------------------------------------------------------------------------------------------------------------
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1163088/image.png)
0 Commenti
Risposte (1)
Fangjun Jiang
il 24 Ott 2022
If your model name is 'codetrial', then it should be sim('codetrial').
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!