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
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.
Lagrange Interpolation Polynomial
If you have a set of N points on a cartesian plane, there will always exist an N-1th order polynomial of the form y = a_0 + a_1.x + a_2.x^2 + ... a_n-1.x^(n-1) which passes through all the points.
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
Learning PID Tuning I: Process Reaction Curve
Most PID tuning rules are based on the assumption that the plant can be approaximated by a first-order plus time delay system. This code explains why this assumption is valid and how to
Cálculos de potencia en presencia de armónicos.
________________________________________________________________________________________Javier López Ríos (2017)
Nous présentons 5 exercices qui mettent en oeuvre la toolbox dédiée à la carte MicroBit
Cash-Flow Matching with Optimization
Use linear programming and mixed-integer linear programming techniques to determine which bonds should be purchased to cover a given a cash flow in order to meet payout obligations, say for
Index Fund Replication
This demo shows index replication where the goal is to find a portfolio of stocks that replicates performance of the entire S&P 500. The data used is S&P 500 returns from Aug 21, 2009 to Aug 20,
Script 9: Unit Commitment
Now that we can generate a forecast for future electricity demand, the next question is what actions should we take based on that forecast? One area of interest is how to operate a combination
You can display multiple plots in different subregions of the same window using the subplot function.
Basic Matrix Operations
Basic techniques and functions for working with matrices in the MATLAB® language.
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
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.