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.
Compare Fits Programmatically
Fit and compare polynomials up to sixth degree using Curve Fitting Toolbox, fitting some census data. It also shows how to fit a single-term exponential equation and compare this to the
Wind Farm (IG)
Phasor simulation of a 9-MW wind farm using Induction Generators (IG) driven by variable-pitch wind turbines.
Fit Exponential Models Using the fit Function
Fit an exponential model to data using the fit function.
Removing High-Frequency Noise from an ECG Signal
This examples shows you how to filter an ECG signal that has high-freqquency noise, and remove the noise by low-pass filtering.
Inspect an Infiniium Waveform file
Open a .mat file saved by the Keysight Infiniium application, and read the header information, without loading all of the data. This function is useful when you just want to examine the
Read an Infiniium waveform
The Keysight Infiniium application can save waveform data to a MATLAB® .mat file, so that you can work with it directly in MATLAB. One way to read the data is to use the MATLAB load function to
Save an Infiniium waveform
The Keysight Infiniium application can load waveform data from a MATLAB® .mat file. The file must contain a set of required information, and be formatted in the right way. Waveform data, for
Low Pass Filter an Infiniium Waveform
The InfiniiumWaveform Toolbox lets you easily modify, in Matlab, data acquired on the scope, and then load the results back onto the scope. This demo starts with a .mat file saved by the scope,
Simulating Automatic Climate Control Systems
Simulate the working of an automatic climate control system in a car using Simulink® and Stateflow®. You can enter a temperature value you would like the air in the car to reach by double
To create two-dimensional line plots, use the plot function. For example, plot the value of the sine function from 0 to 2\pi :
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
Modeling a Fault-Tolerant Fuel Control System
Combine Stateflow® with Simulink® to efficiently model hybrid systems. This type of modeling is particularly useful for systems that have numerous possible operational modes based on