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.
Perform classification using discriminant analysis, naive Bayes classifiers, and decision trees. Suppose you have a data set containing observations with measurements on different variables (called predictors) and their known class labels. If you obtain predictor values for new observations, could you determine to which classes those
Measuring Signal Similarities
Measure signal similarities. It will help you answer questions such as: How do I compare signals with different lengths or different sampling rates? How do I find if there is a signal or just noise in a measurement? Are two signals related? How to measure a delay between two signals (and how do I align them)? How do I compare the frequency content of two signals?
Control HC-SR04 Ultrasonic Sensor
Use the MATLAB® Support Package for Arduino® Hardware to control a HC-SR04 ultrasonic ranging module capable of measuring distances in the 2cm to 400cm range.
QPSK and OFDM with MATLAB System Objects
Simulate a basic communication system in which the signal is first QPSK modulated and then subjected to Orthogonal Frequency Division Multiplexing. The signal is then passed through an
Designing a Guidance System in MATLAB and Simulink
Use the model of the missile airframe presented in a number of published papers (References ,  and ) on the use of advanced control methods applied to missile autopilot design. The
Introduction to MIMO Systems
Multiple-Input-Multiple-Output (MIMO) systems, which use multiple antennas at the transmitter and receiver ends of a wireless communication system. MIMO systems are increasingly
Illustrates a workflow for modeling an audio processing application in MATLAB and deploying C/C++ code to create a standalone application on a Raspberry Pi. MATLAB coder generates
Run MATLAB Code on Raspberry Pi Hardware
Illustrates a MATLAB® Coder™ based workflow for running MATLAB code on Raspberry Pi. MATLAB Coder generates readable and portable C / C++ code from MATLAB code, supporting most of the MATLAB
tprintf writes tabular data to a text file
Tprintf provides a more intuitive interface to fprintf for writing tabular data to a text file. tprintf(filespec,format,A1,...,An) creates a tabular text file by writing the columns of
The function NEXTNAME returns a file or folder name, incrementing a number at the end of the name to ensure that the returned name is not currently used.
Binind2latlon converts binned index values of a sinusoidal grid to geocoordinates.
To create two-dimensional line plots, use the plot function. For example, plot the value of the sine function from 0 to 2\pi :
Simulation of a Bouncing Ball
Use two different approaches to modeling a bouncing ball using Simulink®.
You can display multiple plots in different subregions of the same window using the subplot function.
Single Hydraulic Cylinder Simulation
Use Simulink® to model a hydraulic cylinder. You can apply these concepts to applications where you need to model hydraulic behavior. See two related examples that use the same basic
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