Reusable libraries of blocks and subsystems


Subsystem Represent system within another system
Unresolved Link Indicate unresolved reference to library block


libinfo Get information about library blocks referenced by model
gcb Get path name of current block
gcbh Get handle of current block


LibraryBrowser.LibraryBrowser2 Simulink Library Browser

Examples and How To

Library Browser

Create a Custom Library

Add blocks and annotations to a custom library and define the library structure.

Add Libraries to the Library Browser

Create a library, add it to the library browser, and customize library order.

Library Links

Linked Blocks

Explore linked blocks, parameterized links, and self-modifiable linked subsystems.

Display Library Links

Identify link status using the link badge.

Disable or Break Links to Library Blocks

Disable library links.

Lock Links to Blocks in a Library

Prevent unintentional disabling of library links.

Restore Disabled or Parameterized Links

Restore library links and link inconsistency.

Control Linked Block Programmatically

Use MATLAB® commands to manage linked blocks.

Fix Unresolved Library Links

Handle unresolved library links.

Forwarding Tables

Map old and new library blocks using forwarding tables.


Custom Libraries and Linked Blocks

Reuse your own library blocks in a model by creating a custom library. Blocks can link back to the library you created them from.

Componentization Guidelines

Organize your model into independently functional parts

Was this topic helpful?