Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to build a subsystem with the function of replacing the click menu?

1 visualización (últimos 30 días)
mingqi zhang
mingqi zhang el 9 de Mayo de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
how to realize the function of double clicking the subsystem instead of clicking menu> analysis> model dependencies> model dependency viewer> model& libraries

Respuestas (1)

goerk
goerk el 12 de Mayo de 2020
Editada: goerk el 12 de Mayo de 2020
Create an empty Subsystem.
Right-Click on the subsystem and select 'Properties...'
Go to Tab 'Callbacks' and chose 'OpenFcn'.
insert
mdlName= get_param(bdroot(gcbh),'name');
view_mdlrefs(mdlName);
to the content of callback function field.
For a detailed description see:
Note: To get the same functionality as in the example, you can simply copy the 'block' to your model.

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by