Switch from command window to simulink model block

How do I create a link in the command window for a block in a simulink model?

I found something like this:

    disp('<a href="matlab:magic(4)">Generate magic square</a>')

      

and one can use href to go to line in m file. What does the syntax for jumping to a given block in a model mean? (I know the gcb block in advance).

Note I am not fixed in the href solution.

+3


source to share


1 answer


Usage hilite_system

can use the following:



fprintf('<a href="matlab:hilite_system(''%s'')">Jump to Block</a>\n' , gcb )

      

+3


source







All Articles