MATLAB Examples

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?

Compute the unilateral credit value (valuation) adjustment (CVA) for a bank holding a portfolio of vanilla interest rate swaps with several counterparties. CVA is the expected loss on an over-the-counter contract or portfolio of contracts due to counterparty default. The CVA for a particular counterparty is defined as the sum over all points in time of

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 being adopted in communication systems for the potential gains in capacity they realize when using multiple antennas. Multiple antennas use the spatial dimension in

Use imfindcircles to automatically detect circles or circular objects in an image. It also shows the use of viscircles to visualize the detected circles.

Acquire IQ Data from a signal analyzer over a TCP/IP interface.

To create two-dimensional line plots, use the plot function. For example, plot the value of the sine function from 0 to :

Price a European Asian option using four methods in the Financial Instruments Toolbox™: two closed form approximations (Levy and

Plot more than one line by passing multiple x,y pairs to the plot function.

Automatically create a panorama using feature based image registration techniques.

Anonymous functions require that you explicitly specify the input arguments as you would for a standard function, separating multiple

Automatically detect and track a face using feature points. The approach in this example keeps track of the face even when the person tilts his

Here's a quick and easy way to make maps of subglacial water accumulation using TopoToolbox. This example uses Bedmap2 surface and bed

The cmocean function returns perceptually-uniform colormaps generated by Kristen Thyng. A detailed description of the cmocean project is

The phasebar function places a circular donunt-shaped colorbar for phase from -pi to pi or -180 degrees to 180 degrees.

The phasemap function returns or sets a cyclic colormap with a constant lightness profile appropriate for plotting phase. The phasemap

The phasewrap function wraps values to the range -pi to pi or -180 to 180.

We propose two fuzzy portfolio optimization models based on the Markowitz Mean-Variance approach. The first model involves trapezoidal

Use Simulink® to model a hydraulic cylinder. You can apply these concepts to applications where you need to model hydraulic behavior. See two

Create a figure containing multiple axes using the subplot function. The syntax, subplot(m,n,p), divides the figure into an m-by-n grid with

Model a conceptual air traffic control (ATC) radar simulation based on the radar range equation.

Use an extended Kalman filter with the MATLAB® Function block in Simulink® to estimate an aircraft's position from radar measurements. The

Approximate nonlinear relationships of a type S thermocouple.

Use the model of the missile airframe presented in a number of published papers (References [1], [2] and [3]) on the use of advanced control

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries