MATLAB Examples

How the Simscape™ Foundation Library Asynchronous Sample & Hold block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source

Use the Simscape™ example library ElectroChem_lib. In the model Fe3+ ions are reduced to Fe2+, and Pb is oxidized to Pb2+, thereby releasing chemical energy. The molar flow rate of lead ions

Use the Simscape™ example library Capacitors_lib. The model is constructed using components from the example library. The circuit charges an ultracapacitor from a constant 0.05 amp

How the discrete-time Simscape™ Foundation Library Counter block can be used to build components with more complex behaviors. The model implements a controllable PWM voltage source where

A lumped parameter transmission line model. It is built from a custom Simscape™ component that defines a single T-section segment. The model concatenates 50 segments, each of length 0.1m,

Use Simscape™ to model a variable transport delay. The Transport Delay block models signal propagation through media moving between the Input and the Output terminals. The media velocity

Model a controlled actuator using simplified custom pneumatic components. There are two across variables, defined as pressure and temperature, and two through variables, defined as mass

Write Simscape™ functions to compute numerical values with Simscape expressions and how to use Simscape functions to improve code reuse across components. The top two Simscape component

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.

Models a vapor-compression refrigeration cycle using two-phase fluid components. The compressor drives the R-134a refrigerant through a condenser, an expansion valve, and an

The usage of thermal blocks for developing a model of a long iron rod that is heated with a heat source through face A. Face B and the outer cylindrical surface are open to atmosphere and

Model a simple house heating system. The model contains a heater, thermostat, and a house structure with four parts: inside air, house walls, windows, and roof.

Two models of a double mass-spring-damper, one using Simulink® input/output blocks and one using Simscape™ physical networks.

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 basic engine cooling system using custom thermal liquid blocks. A fixed-displacement pump drives water through the cooling circuit. Heat from the engine is absorbed by the water

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,

Model shows how the Thermal Liquid foundation library can be used to model water hammer in a long pipe. After slowly establishing a steady flow within the pipe by opening a valve accordingly,

A model of a system that connects rotational and translational motion. A summing lever drives a load consisting of a mass, viscous friction, and a spring connected to its joint C. Joint B is

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:

How the thermal behavior of a brushless servomotor can be simulated using a lumped parameter model. Heat generated due to power losses in the stator iron stack, stator winding and rotor is

How the Foundation library can be used to model systems that span electrical, mechanical and hydraulic domains. In the model, a hydraulic system controls mechanical load position in

A mass attached to a spring and a viscous damper. The mass is driven by an ideal velocity source through a friction element. The motion profile of the source is selected in such a way that

The use of the Simscape™ Lever block in a linkage mechanism. Lever 1 and Lever 4 are first class levers with the fulcrum at the end. Lever 3 is a second class lever with the fulcrum in the middle.

How the Foundation Library gas components can be used to model a controlled pneumatic actuator. The Directional Valve is a masked subsystem created from Variable Local Restriction (G)

Model a transformer using fundamental magnetic library blocks. The transformer is rated 50W, 60 Hz, 120V/12V and assumed to have an efficiency of 94%, no-load magnetizing current of 1% and a

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 solenoid with spring return. When unpowered, the spring pulls the plunger +5mm away from the center of the coil. Turning on the power supply at t=0.1 seconds pulls the plunger into the

Choose a web site 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 web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office