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

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.

 Accepted Answer

get_param(Block,'ModelName')
get_param(Block,'ModelFile')

More Answers (0)

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 10 Jan 2023

Commented:

on 18 Jan 2023

Community Treasure Hunt

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

Start Hunting!