How to set the 'Model name' in Model Reference via MATLAB command?

3 次查看(过去 30 天)
Is there a MATLAB command for entering the Model name in the Model reference?
I have several such Model subsystems in my Simulink model and I'm looking for option to update the reference model via MATLAB command.

采纳的回答

Fangjun Jiang
Fangjun Jiang 2023-1-12
get_param(Block,'ModelName')
get_param(Block,'ModelFile')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by