Modeling the United States Economy
Illustrates the use of a vector error-correction (VEC) model as a linear alternative to the Smets-Wouters Dynamic Stochastic General Equilibrium (DSGE) macroeconomic model, and applies many of the techniques of Smets-Wouters to the description of the United States economy.
Fit Exponential Models Using the fit Function
Fit an exponential model to data using the fit function.
Wind Farm (IG)
Phasor simulation of a 9-MW wind farm using Induction Generators (IG) driven by variable-pitch wind turbines.
Build a Digital Voltmeter
Build a digital voltmeter using MATLAB® Support Package for Raspberry Pi® Hardware.
Lowpass Filter Design in MATLAB
Design lowpass filters. The example highlights some of the most commonly used command-line tools in the DSP System Toolbox. Alternatively, you can use the Filter Builder app to implement
This script file is designed to be used in cell mode from the matlab editor, or best of all, use the publish to HTML feature from the matlab editor. Older versions of matlab can copy and paste
Designing a High Angle of Attack Pitch Mode Control
Use the Control System Toolbox™ and Simulink® Control Design™ to interact with Simulink to design a digital pitch control for the aircraft. In this example, we will design the controller to
2-D and 3-D Plots
To create two-dimensional line plots, use the plot function. For example, plot the value of the sine function from 0 to 2\pi :
Manipulating Multidimensional Arrays
Work with arrays having more than two dimensions. Multidimensional arrays can be numeric, character, cell, or structure arrays.
Approximating Nonlinear Relationships: Type S Thermocouple
Approximate nonlinear relationships of a type S thermocouple.
Anti-Windup Control Using a PID Controller
Use anti-windup schemes to prevent integration wind-up in PID controllers when the actuators are saturated. We use the PID Controller block in Simulink® which features two built-in