选择新建空白库,保存在自定义文件夹中,命名为mylib.slx。(名字可以随便起,但是要和下面脚本对应上)
在新建一个脚本文件,命名为slblocks.m
function blkStruct = slblocks
% This function specifies that the library should appear
% in the Library Browser
% and be cached in the browser repository
Browser.Library = 'mylib';
% 'mylib' is the name of the library
Browser.Name = 'My Library';
% 'My Library' is the library name that appears
% in the Library Browser
blkStruct.Browser = Browser;