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?
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.
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.
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
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
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
UIGAGE user interface needle gage
The class uigage can be used in a GUI to display outputs that are suitable for a needle gage type display. It behaves in a very similar fashion to other Matlab uicontrol objects. Many
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
Three-dimensional plots typically display a surface defined by a function in two variables, z = f(x,y) .
Manipulating Multidimensional Arrays
Work with arrays having more than two dimensions. Multidimensional arrays can be numeric, character, cell, or structure arrays.
Basic Matrix Operations
Basic techniques and functions for working with matrices in the MATLAB® language.
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