MATLAB Examples

This model shows how to model a digital potentiometer such as is used to control audio amplifiers from a digital circuit or microprocessor-controlled system. The model also shows how you can

A simple voltage regulator circuit constructed from discrete components. A fluctuating supply is modeled as 20V DC plus a 1V sinusoidal variation. The zener diode D1 sets the non-inverting

How a system-level model of a brushless DC motor (i.e. a servomotor) can be constructed and parameterized based on datasheet information. The motor and driver are modeled as a single masked

This model shows how a varistor may be applied to a buck converter in order to protect the switching MOSFETs from over-voltages due to a differential surge.

This model shows how a fault may be applied to a MOSFET in a power converter in order to explore the operation of protection circuitry. After the MOSFET becomes faulted, the crowbar circuitry

An electric vehicle model suitable for Hardware-In-the-Loop (HIL) deployment. Energy-based modeling is used to avoid high-frequency switching, and solvers set for fixed-step

A comparison of the torque-speed characteristics for five different motor types. To select the motor type, right-click on the Electric Motor block, select Variant->Override using and

A differential pair amplifier circuit. The circuit can be used to explore the properties of a differential pair amplifier. The model can be tested using differential and common-mode

Generation of the Ic versus Vce curve for an NPN bipolar transistor. Define the vector of base currents and minimum and maximum collector-emitter voltages by double clicking on the block

An implementation of a first order phase shifting filter. The filter is characterized by the transfer function H(s) = (sC - gm1)/(sC + gm1). Double-click on the Set Design Parameters block to

This model shows a class-E RF amplifier with circuit parameters chosen for an 80m wavelength. Class-E amplifiers achieve high efficiency levels as the MOSFETs never have simultaneously

This model shows how a flyback converter can step-up a 5V DC source into a 15V DC regulated supply. The voltage is increased by creating a time-varying voltage across a transformer primary.

A pulse-width-modulated (PWM) output implemented using a 555 Timer in astable mode. The duty cycle is set by a potentiometer, P1. The potentiometer is controlled during run-time via Duty

A detailed implementation model of a controlled linear actuator. The actuator consists of a DC motor driving a worm gear which in turn drives a lead screw to produce linear motion. The model

A Peltier device working in cooling mode with a hot side temperature of 50 degC. In cooling mode, the Coefficient of Performance (COP) of the Peltier cell is equal to the total heat transferred

Generation of the Ic versus Vce curve for an insulated gate bipolar transistor. Define the vector of gate-emitter voltages and minimum and maximum collector-emitter voltages by

An analog implementation of an anti-aliasing filter for use with an A-to-D converter. The filter cut-off frequency is set to 500Hz in order to match the A-to-D converter sampling frequency

A switching audio power amplifier circuit. Switching audio power amplifiers are more efficient than conventional power amplifiers as switching devices are operating only in the fully-on

A typical low-noise audio amplifier circuit. Resistor R2 provides negative feedback to stabilize the overall amplifier gain, making it independent of transistor open-loop forward

This model shows how the performance of a rotational energy scavenger can be explored using a simple representative model. Electrical energy is produced from an off-center mass attached to

Models the thermal dynamics of MOSFETs in a synchronous buck converter. It matches the structure of the Synchronous Buck Converter With Thermal Dynamics model (>>

An implementation of a fourth-order Sallen-Key low-pass filter using Operational Amplifiers (OPAs). The filter design parameters, cut-off frequency (f1) and DC gain (K), are specified

An implementation of a band-pass filter using three mutually-coupled inductors. The model can be used to validate filter parameters which are chosen to provide a band-pass centered on

Use functions which analyze Simscape™ logging data to get harmonic magnitudes, calculate total harmonic distortion percentage and plot harmonic magnitudes. The model to which this

Calculation and confirmation of a nonlinear transformer core magnetization characteristic. Starting with fundamental parameter values, the core characteristic is derived. This is

A Permanent Magnet Synchronous Machine (PMSM) and inverter sized for use in a typical hybrid vehicle. Here the inverter is connected directly to the vehicle battery, but often there is also a

A comparison of Composite three-phase ports versus Expanded three-phase ports. The first circuit shows a Voltage Source configured with a Composite three-phase port. A Phase Splitter

An induction machine used as a wind turbine generator. The Simple Turbine block converts wind speed to turbine output power by a simple output power versus wind speed characteristic.

A custom Simscape™ implementation of a Permanent Magnet Synchronous Machine (PMSM). To view the PMSM source code, double-click on the motor block and then click on the hyperlink 'Source

Model a three-phase voltage-sourced converter that uses Sinusoidal Pulse-Width Modulation (SPWM). This modulation scheme compares a reference sine wave with a higher-frequency

Control and initialize a Synchronous Machine (SM).

Model a wye-delta starting circuit for an induction machine. When the supply is connected to the machine via switch S1, switch S2 is initially off resulting in the machine being connected in a

Two different ways to create a custom transformer component. The first uses built-in library blocks to lay out the magnetic circuit as a masked Simulink® subsystem. The second builds a

A representative marine half-ship electrical power system with base load, hotel load, bow thrusters and electric propulsion.

How simplify the custom Simscape™ synchronous machine model.

A custom Simscape™ implementation of a Synchronous Machine (SM). To view the SM source code, double-click on the Synchronous Machine block and then click on the hyperlink 'Source code'.

Model a three-phase voltage-sourced converter that uses Fixed Low-side Bias (FLB) modulation. This modulation scheme minimises the switching in the converter as at any given time one

A comparison in behavior of a linear and nonlinear inductor. Starting with fundamental parameter values, the parameters for linear and nonlinear representations are derived. These

A comparison of three-phase transforms.

In this example, an asynchronous motor is connected to an ideal pump. The diameter of the valve on the hydraulic system affects the speed and current drawn by the motor.

Script shows how you can linearize a Simscape™ Electrical™ model to support control system stability analysis and design. It uses example model pe_sm_governor_control_design.

Use a Permanent Magnet Synchronous Motor (PMSM) to amplify driver-applied force in a power-assisted automobile steering system.

The generation of a temperature profile based on switching and conduction losses in an insulated-gate bipolar transistor (IGBT). There are two buck converters. For one converter, the IGBT

Use the PWM Generator (Three-phase, Three-level) to control a Three-Level Converter. The upper and lower supply voltages are input to a Neutral point controller, which balances the

Control and analyze the operation of an Asynchronous Machine (ASM) using sensored rotor field-oriented control. The model shows the main electrical circuit, with three additional

The voltage output by a Supercapacitor block as it is charged and then discharged. To charge the Supercapacitor, a current of 100 mA is input to the Supercapacitor for 100 seconds. The

A single-phase dynamic load block built with Simulink® blocks.

The starting procedure for a synchronous motor.

Phasor simulation of a 9-MW wind farm using Induction Generators (IG) driven by variable-pitch wind turbines.

A detailed model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level VSC.

The measurement distortion due to saturation of a current transformer (CT).

The simulation of an H-bridge used to generate a chopped voltage and to control the speed of a DC motor.

An average model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level VSC.

The Machine Load Flow tool of Powergui block to initialize an induction motor/diesel-generator system.

A current-controlled 60-kW 6/4 SRM drive using the SRM specific model based on measured magnetization curves. 8/6 and 10/8 preset models are also presented with same control strategy.

Energy management systems for a fuel cell hybrid electric source.

The operation of two models of on load tap changer (OLTC) regulating transformer.

A model of a solid oxide fuel cell (SOFC) which can be utilized in Specialized Power Systems.

An aircraft electrical power generation and distribution system. The AC power frequency is variable and depends of the engine speed

The operation of a typical transformerless photovoltaic (PV) residential system connected to the electrical utility grid.

Phasor simulation of a 9 MW wind farm using Doubly-Fed Induction Generator (DFIG) driven by a wind turbine.

An average model of a distribution STATCOM.

The use of the Three-Phase Transformer Inductance Matrix Type block to model a three-phase core-type saturable transformer. It also shows that using three single-phase transformers to

A six-pulse cycloconverter driving a static load.

A detailed model of a 250-kW PV array connected to a 25-kV grid via a three-phase converter.

The operation of the multilevel multiphase SVPWM and two-level multiphase SVPWM.

The asynchronous machine in an open-loop speed control on a 3 HP 220 V industrial motor.

The behavior of a simplified model of a small-scale micro grid during 24 hours on a typical day. The model uses Phasor solution provided by Specialized Power Systems in order to accelerate

The use of three-phase blocks to study transients on a series-compensated 735-kV transmission system

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