Add a custom library to the Simulink library Browser

Source: Internet
Author: User

Matlab/simulink: Adding a custom library to the Simulink library Browser

Classification:

Step: 1, create a custom library. In the Simulink Library Browser window, select Menu File |   New Library, add the required modules, and save (for example: MYSIMLIB.MDL); 2. Create a new SLBLOCKS.M with the following contents: function blkstruct = slblocks   browser.library = ' mysimlib ';   Browser.name = ' 00_my_library '; Blkstruct.browser = Browser; Description: * Mysimlib is the filename of the custom library file; * 00_my_library is the name that will be displayed in the Simlink Library Browser window; * Note: Do not add any comments, otherwise it may not succeed, I have suffered a failure (System: Windows XP English, Matlab version: R2010A); 3. Place mysimlib.mdl and SLBLOCKS.M in the same directory; then, in the Matlab main window, Select Menu File | Set path ..., add the directory to the Matlab search path, save, exit; 4. In the Simulink Library Browser window, press the F5 button or select menu View | Refresh Tree view to see the name of the custom library (in this case, 00_my_library) appears in the Library browser.

Add a custom library to the Simulink library Browser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.