MATLAB Examples

Model a lithium cell using the Simscape™ language to implement the elements of an equivalent circuit model with two RC branches. For the defining equations and their validation, see T.

An ideal AC transformer plus full-wave bridge rectifier. It converts 120 volts AC to 12 volts DC. The transformer has a turns ratio of 14, stepping the supply down to 8.6 volts rms, i.e.

Model a lead-acid battery cell using the Simscape™ language to implement the nonlinear equations of the equivalent circuit components. In this way, as opposed to modeling entirely in

This model is based on a Faulhaber Series 0615 DC-Micromotor. The parameters values are set to match the 1.5V variant of this motor. The model uses these parameters to verify

Model a lithium cell using the Simscape™ language to implement the elements of an equivalent circuit model with one RC branch. For the defining equations and their validation, see T. Huria,

A solenoid with a spring return. The solenoid is modeled as an inductance whose value L depends on the plunger position x. The back emf for a time-varying inductance is given by:

Two models of an RC circuit, one using Simulink® input/output blocks and one using Simscape™ physical networks.

This model shows the use of a small-signal equivalent transistor model to assess performance of a common-emitter amplifier. The 47K resistor is the bias resistor required to set nominal

A model of a shunt motor. In a shunt motor, the field and armature windings are connected in parallel. Equivalent circuit parameters are armature resistance Ra = 110 Ohms, field resistance Rf

Model a circuit breaker. The electromechanical breaker mechanism is approximated with a first-order time constant, and it is assumed that the mechanical force is proportional to load

A starting point for creation of a new electrical model. The model also opens an Electrical Starter Palette that shows how you can create your own customized library that also provides links

An implementation of a nonlinear inductor where the inductance depends on the current. For best numerical efficiency, the underlying behavior is defined in terms of a current-dependent

Simulate a battery pack consisting of multiple series-connected cells in an efficient manner. It also shows how a fault can be introduced into one of the cells to see the impact on battery

This model shows an implementation of a nonlinear bipolar transistor based on the Ebers-Moll equivalent circuit. R1 and R2 set the nominal operating point, and the small signal gain is

This model shows a standard inverting op-amp circuit. The gain is given by -R2/R1, and with the values set to R1=1K Ohm and R2=10K Ohm, the 0.1V peak-to-peak input voltage is amplified to 1V

This model shows a differentiator, such as might be used as part of a PID controller. It also illustrates how numerical simulation issues can arise in some idealized circuits. The model runs

Two models of a cascaded RC circuit, one using Simulink® input/output blocks and one using Simscape™ physical networks.

Model a two-pole variable reluctance actuator. Initially the rotor is held at 45 degrees by the rotational spring, and then at 0.1 seconds the motor is activated. The rotor is pulled towards

This model shows a noninverting op-amp circuit. The gain is given by 1+R2/R1, and with the values set to R1=1K Ohm and R2=10K Ohm, the 0.1V peak-to-peak input voltage is amplified to 1.1V

How higher fidelity or more detailed component models can be built from the Foundation library blocks. The model implements a band-limited op-amp. It includes a first-order dynamic from

How higher fidelity or more detailed component models can be built from the Foundation library blocks. The Op-Amp block in the Foundation library models the ideal case whereby the gain is

The response of a DC power supply connected to a series RLC load. The goal is to plot the output voltage response when a load is suddenly attached to the fully powered-up supply. This is done

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries