while writing script for automatic Model advisor check for a model , getting this error

2 次查看(过去 30 天)

回答(1 个)

Lokesh
Lokesh 2024-7-23
Hi Manjunath,
The issue arises because the new argument is not correctly specified as a character vector. The new argument should be a string, but it appears to be used as a variable, which is not recognized. The correct syntax should be:
ma = Simulink.ModelAdvisor.getModelAdvisor('simple_mdl', 'new');

类别

Help CenterFile Exchange 中查找有关 Create Model Advisor Checks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by