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