Why do I get an error when compiling my Simulink model using "eval"?
12 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-11-7
回答: MathWorks Support Team
2019-4-24
When I run the following command:
>> eval([FileName '([], [], [], ''compile'')'])
Where FileName is a a Simulink model file name, I get the following error:
Error in 'MyModel':
Initialization commands cannot be evaluated.
Caused by:
Too many input arguments.
When I run this command on another system, I do not get this error. How can I solve this?
采纳的回答
MathWorks Support Team
2019-4-25
Try regenerating your MATLAB preferences or copying the matlab.prf file from another machine. Please refer to the following link for regenerating your preferences:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!