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

3 views (last 30 days)
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

Fangjun Jiang
Fangjun Jiang on 12 Jan 2023
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

Community Treasure Hunt

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

Start Hunting!