How can I add multiple custom libraries to the Simulink library browser on top level?
11 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2017 年 1 月 16 日
回答済み: MathWorks Support Team
2017 年 1 月 23 日
I would like to add multiple custom libraries to the library browser at top level. How can I do that?
採用された回答
MathWorks Support Team
2017 年 1 月 16 日
To add multiple custom libraries to the Simulink library browser at top level one needs to save the appropriate libraries to the same directory.
Now "slblocks.m" can be modified as follows to add multiple libraries from the same directory:
blkStruct.OpenFcn = {'Library1','Library2'};
Browser(1).Library = 'Library1';
Browser(1).Name = 'Library 1';
Browser(1).IsFlat = 0;% Is this library "flat" (i.e. no subsystems)?
Browser(2).Library = 'Library2';
Browser(2).Name = 'Library 2';
Browser(2).IsFlat = 0;% Is this library "flat" (i.e. no subsystems)?
blkStruct.Browser = Browser;
For example,
matlab\toolbox\simulink\blocks\slblocks.m
identifies both the Simulink and and Simulink Extras libraries.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!