| SimElectronics™ | ![]() |
| On this page… |
|---|
SimElectronics™ libraries provide blocks for modeling electromechanical and electrical systems within the Simulink® environment. SimElectronics also lets you create custom libraries to model circuit components defined in SPICE netlists.
At a high level, the library blocks fall into three categories:
Electromechanical and electrical blocks — Blocks in the product that model electromechanical and electrical components using parameters that appear on manufacturer data sheets. These blocks provide multiple parameterizations when more than one datasheet parameterization convention is commonly used.
SPICE-compatible blocks — Blocks in the product that model electrical components using industry-standard SPICE parameters.
Custom blocks — Blocks you create that model a set of electrical components you define in a SPICE netlist.
Note SimElectronics follows the standard Simulink conventions where block inputs and outputs are called ports. In SimElectronics, each port represents a single electrical terminal. |
A SimElectronics model can contain blocks from any of the standard SimElectronics libraries or from a custom library you create by importing circuit data from a SPICE netlist. A model can also include Simulink blocks and blocks from other products, such as those described in Required and Related Products.
This section contains the following topics:
Use blocks from the SimElectronics libraries described in this table to model physical and electrical components by specifying physical and electrical properties.
For more information on defining components, see Modeling Electronic Components.
Use blocks from one or more custom libraries to model circuit components defined in SPICE netlists. You create the custom libraries by importing circuit information from a SPICE netlist into SimElectronics.
For more information on importing SPICE data, see Importing SPICE Models Into a SimElectronics™ Library.
There are two ways to access SimElectronics blocks:
You can access the blocks through the Simulink Library Browser. To display the Library Browser, click the Library Browser button in the toolbar of the MATLAB® desktop or Simulink model window:
![]()
Alternatively, you can type simulink in the MATLAB Command Window. Then expand the Simscape entry in the contents tree.
For more information on using the Library Browser, see Library Browser in the Simulink Graphical User Interface documentation.
Another way to access the block libraries is to open them individually by using the command prompt:
To open just the SimElectronics library, type elec_lib in the MATLAB Command Window.
To open the Simscape™ library (to access the utility blocks, as well as electrical sources, sensors, and other Foundation library blocks), type simscape in the MATLAB Command Window.
To open the main Simulink library (to access generic Simulink blocks), type simulink in the MATLAB Command Window.
The SimElectronics library window is shown in the following figure. Each icon in the window represents a library. Some of these libraries contain second-level sublibraries. Double-click an icon to open the corresponding library.

![]() | Product Demos | Product Workflow | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |