MATLAB Answers

How can I access to the tabs in Simulink editor by script?

1 view (last 30 days)
Ivo Kahl
Ivo Kahl on 28 Jul 2020
Answered: Abhisek Pradhan on 13 Nov 2020
Usually it's possibe to open subsystems by "Open in new tab" by mouse action.
If theese tabs were not closed before saving the model it reopenes in same (all tabs open) way.
I want to create a script (e.g. for usage in pre-save callback), that closes all tabs except the first one.
The necessary command to access theese tabs was not yet found by me.
I'm using ML 2017B with matching Simulink-version.

Answers (1)

Abhisek Pradhan
Abhisek Pradhan on 13 Nov 2020
I am not sure if this can be done through any of the MATLAB functions but it can be done using some external automation tools, which takes control of MATLAB and can perform various GUI actions.

Categories

Community Treasure Hunt

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

Start Hunting!