| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
| On this page… |
|---|
Adding Blocks by Browsing or Searching with the Library Browser |
You can add blocks to a model in several ways.
| Method | When to Use |
|---|---|
| Browse or search libraries with the Library Browser |
|
| Copy blocks from a model |
|
| Use the Most Frequently Used Blocks pane or context menu |
|
| Add blocks programmatically with the add_block function |
|
To browse or search for a block from a block library installed on your system, use the Library Browser. You can browse a list of block libraries or search for blocks whose names include the search string you specify.
When you find the block you want, select that block in the Library Browser and drag the block into your model. See Populating a Model for more information.
To copy a block from a model in the Model Editor:
Select the block you want to copy.
Choose Edit > Copy.
If you have multiple model windows open, make the target model window the active window.
Choose Edit > Paste.
When you copy a block, the parameters use default values.
See Copying and Moving Blocks from One Window to Another for details.
When using the same block repeatedly, you can save time by using the Most Frequently Used Blocks feature in the Library Browser or Model Editor.
Open the Most Frequently Used Blocks pane with the third tab in the Library Browser.

To add a block to a model, select the block from the list and do either one of the following:
Drag the block into your model.
Select Add to <model_name> at the top of the context menu for the block.
In the Model Editor, you can view a list of your most frequently used blocks. Right-click anywhere in the model except with the cursor directly on a block or signal. In the context menu, select Most Frequently Used Blocks.
The Most Frequently Used Blocks pane lists blocks that you have added most often, with the most frequently used block at the top. The list reflects your ongoing modeling activity. For example, if you add several Gain blocks, the Gain block appears in the list if the list:
Does not already include the Gain block
Has less than 25 blocks
Has 25 blocks, but you added more Gain blocks than the number of instances of the least frequently used block in the list
The list displays blocks that you rename as instances of the library block. For example, if you rename several Gain blocks to be MyGain1, MyGain2, and so on, those blocks count as Gain blocks.
When you close and reopen the Library Browser, the list reflects the blocks that you added up through the previous session. The list updates only when the Library Browser is open.
The list does not reflect blocks that you:
Add programmatically
Include in subsystems (In other words, if you add a subsystem that uses a specific type of block repeatedly, the list does not reflect that activity.)
The list in the Model Editor is the same as the Library Browser list, except that the Model Editor list includes only five blocks.
To add a block programmatically, use the add_block function.
The add_block function copies the parameter values of the source block to the new block. You can use add_block to specify values for parameters of the new block.
![]() | About Blocks | Editing Blocks | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |