Main Content

Library Browser

Find and add blocks to your model

Description

The Library Browser opens and displays a tree view of the Simulink® block libraries on your system.

As you click libraries in the tree, the contents of the library appear in the right pane. Use the Library Browser to locate blocks and annotations to add to your model. Navigate the libraries using the tree structure in the left pane or by double-clicking sublibraries in the right pane. Sublibraries, blocks, and text and image annotations can appear in the right pane. Pause on any item to see a description.

The Recently Used library at the bottom of the tree contains the blocks and libraries from the available libraries that you used most recently.

When you find the item you are looking for, you can drag it into your model, or you can right-click it and use the context menu to add it.

Open the Library Browser

  • On the MATLAB® Home tab, click Simulink, and choose a model template or open an existing model. On the Simulation tab, click the Library Browser button.

  • In the MATLAB Command Window, enter slLibraryBrowser.

Examples

expand all

You can search for blocks and annotations using the search controls.

To use regular expressions, whole word search, or case-sensitive search, click the arrow to the left of the Search for subsystems, blocks, and annotations button. For annotations, you can search for any of the text in the annotation or any part of its description.

By default, library contents appear in alphabetical order. Subsystems appear first, then blocks, and then annotations. If you prefer to view the contents of the libraries in the order set by the developer of the library, right-click the right pane and select Sort in library model order. This setting stays in effect from session to session.

To return to the alphabetical order, right-click and select Sort in alphabetical order. Depending on the library, some items might not appear in alphabetical order. For example, in the Simulink library, the Quick Insert library appears as the last item regardless of the sorting option you choose.

You can create your own libraries and, optionally, have them appear in the Library Browser.

For more information, see Create Custom Library.

Related Examples

Tips

You can use keyboard shortcuts to interact with the Library Browser.

TaskAction
Open Library Browser from a modelCtrl+Shift+L
Move selection downDown arrow
Move selection upUp arrow
Expand a libraryRight arrow
Collapse a libraryLeft arrow
Refresh librariesF5
Navigate to parent libraryEsc
Navigate from search result to library containing blockCtrl+R
Insert the selected block in a new modelCtrl+I
Increase zoomCtrl+Plus (+)
Decrease zoomCtrl+Minus (-)
Reset zoom to defaultAlt+1
Find a blockCtrl+F
Close Library BrowserCtrl+W
Introduced before R2006a