How can I set this model properties ( Enable model access to base workspace ) by API such as set_param command?

11 次查看(过去 30 天)
Dear All,
I want to use Simulink API (set_param) to configure "Enable model access to base workspace" parameter, but I don't know the parameter name.
Can I do it by API?
Thank you so much for your help!

采纳的回答

Paul
Paul 2023-4-20
Does
set_param('f14','EnableAccessToBaseWorkspace','off')
do what you need?
The doc page says the parameter is either 'true' or 'false', but some experiments suggest it's either 'on' or 'off'.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by