Is it possible to add a library to the Simulink Library Browser in Matlab Simulink 7.6 (R2010b)?

1 view (last 30 days)
From the simulink library browser is possible to create a new library. I would like to shows this custom library in the Simulink Library Browser. The methods I found online don't apply for my version of matlab/simulink (7.6 - R2010b).

Accepted Answer

ES
ES on 14 Mar 2017
function blkStruct = slblocks
BlocksetName = 'YourLibrary';%mdl file name
Browser(1).Name = 'My Library';%How it appears in Simulink library
blkStruct.Name = sprintf('My Library');
blkStruct.OpenFcn = BlocksetName;
blkStruct.MaskDisplay = '';
Browser(1).Library = BlocksetName;
Browser(1).IsFlat = 0;% Is this library "flat" (i.e. no subsystems)?
blkStruct.Browser = Browser;
end

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!