I want to add custom libraries as a tree structure but the last level sublibrary spills out all its contents and lists as library blocks in the library browser.
I did the following:
1) I have placed optimal1.mdl library and its associated slblocks.m file, attached in the same folder and the folder is in MATLAB path.
2) I closed MATLAB and reopened it. Browsed to the directory which has optimal1.mdl library and slblocks.m.
3) I then opened Simulink library browser. Optimal1 library was listed in the browser.
4) I expanded 'Optimal', then 'Inertial',then 'Motion Detection'. I observed that all the component elements for the 'Gain Computations LTN101 requirements' in the Library got listed. But when I right clicked on 'Gain Computations LTN101 Requirements' in the Simulink library browser and selected 'open Gain Computations LTN101 Requirements Library', all the elements were connected as it should be.
Best Answer