MATLAB Examples

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.

Nick Hale, 8th November 2011

Nick Trefethen, September 2010

This Matlab tutorial demonstrates step by step the Singular Spectrum Analysis (SSA).

Toby Driscoll, November 10, 2010

Basic toolbox for polynomial B-splines on a regular grid

Nick Trefethen, October 2010

This simulation code is based on "Jordan Street's" OFDM simulation presentation 'https://www.youtube.com/watch?v=SyKJrrNhPO8'. We just implemented this tutorial. We don't claim any

Nick Hale, October 2010

This Matlab tutorial demonstrates step by step the multivariate singular spectrum analysis. The steps are almost similar to those of a singular spectrum analysis.

Part1 - (Post) Data Visualization & feature extraction

Author: SHUJAAT KHAN -- shujaat123@gmail.com Cite: Khan, S., Naseem, I., Togneri, R. et al. Circuits Syst Signal Process (2017) 36: 1639. doi:10.1007/s00034-016-0375-7

When you are loading large files for lookup table data from a mat file, the loading of the file is a major cost of time when running the Simulink model. The time cost can be reduced by keeping the

Khan, S., Naseem, I., Togneri, R. et al. Circuits Syst Signal Process (2017) 36: 1639. doi:10.1007/s00034-016-0375-7 https://link.springer.com/article/10.1007/s00034-016-0375-7

This script file is designed to be used in cell mode from the matlab editor, or best of all, use the publish to HTML feature from the matlab editor. Older versions of matlab can copy and paste

必要なToolbox:

Plant identification simulation Author: SHUJAAT KHAN (shujaat123@gmail.com) Please cite: @article{Khan2017FLMFFL, title={FLMF: Fractional least mean fourth algorithm for channel

Author: Shujaat Khan, shujaat123@gmail.com

Author: Shujaat Khan, shujaat123@gmail.com Please Cite: Khan, S., Naseem, I., Togneri, R. et al. Circuits Syst Signal Process (2017) 36: 1639. doi:10.1007/s00034-016-0375-7

Easy to build pendulum lab to acquire data from an Arduino®, analyze the data to find the period of the pendulum, and connect theory with the experiment using symbolic calculations.

Alex Townsend, August 2011

This Matlab tutorial demonstrates the application of a modified varimax algorithm in varimax.m to the eigenvectors of a multichannel singular spectrum analysis (M-SSA).

These are some examples plots made with the carpetplot class.

Use Embedded Coder Support Package to run a Simulink® model on TIVA Tiva TM4C123G LaunchPad using Energia Toolchain.

The behavior of regularizeNd in 1D.

RegularizeNd Fits a nD lookup table with smoothness to scattered data.

Demonstrates the use of regularizeNd with a 4D input and 1D output dataset. Note, that selecting the smoothness isn't always obvious until you have gained experience using regularizeNd.

Toby Driscoll, 20th December 2011

Richard Brown, May 28, 2007

Classify using supervised learning (FULL script)

This example was authored by the MathWorks community.

This is a 5d example. The number of points in the grid is 117,600. This means that the rank of the linear system equations solved is 117,600. I would classify this as a medium size problem. In my

Cluster Analysis

This script demonstrates the complete workflow for developing an embedded machine learning application,including acquiring the data, extracting features, exploring various

Stefan Guettel, October 2010

David Young

The difference between the '\' and the 'normal' solver. The gist is use the '\' for accuracy or ill conditioned problems otherwise use 'normal' for speed. 'normal' is 2-3 times faster than '\'

Nick Trefethen and Nick Hale, October 2010

Toby Driscoll, 16th December 2011

Nick Trefethen, November 2010

Stefan Güttel, 11 July 2011

Nick Hale, June 2011

Nick Trefethen, August 2011

Copyright (c) 2015, Mehmet E. Yavuz All rights reserved.

Nick Hale and Nick Trefethen, December 2010

Nick Trefethen, 25th January 2012

Nick Trefethen, May 2011

Illustrates the use of BEADS to estimate and remove the baseline of chromatogram series.

This case study analyzes the amount of vibration a passenger experiences for a vehicle traveling over a road disturbance (bump). We want to determine the amount of reduction in displacement

SEE ALSO : ASK_MOD, BPSK_MOD, FSK_MOD

Bengt Fornberg and Nick Hale, October 2010

Nick Trefethen, February 2011

Lloyd N. Trefethen, November 2009, revised February 2011

Nick Trefethen, 1st October 2011

Nick Trefethen, September 2011

This file runs three versions of a Radix-4 FFT written in MATLAB:

This demo showcases visualization and analysis for forecasting energy demand based on historical data. We have access to hour-by-hour utility usage for the year 2006, including

Alex Townsend, October 2010

SEE ALSO : ASK_MOD, FSK_MOD, QPSK_MOD

Tobin A. Driscoll, November 2009, revised February 2011

This is a simple example of using regularizeNd.

Use Embedded Coder Support Package to run a Simulink® model on MSP-EXP430G2 LaunchPad using Energia Toolchain.

Nick Trefethen, 22 October 2010

Find the Darcy friction factor for pipe flow using the Colebrook equation.

Nick Trefethen, 27 November 2011

Two ravines on a hillside. Scanned from a topographic map of an area in upstate New York.

Tune the parameters and monitor the signals of an algorithm running on Tiva TM4C123G LaunchPad using Energia Toolchain.

Lloyd N. Trefethen, November 2009, revised Feburary 2011

Nick Hale, November 2010

This program has the ability to embed/hide multiple text images in any color image. The encoded text images can be seamlessly recoverable. The key advantage in this coding algorithm is, the

Toby Driscoll and Nick Trefethen, October 2010

Nick Trefethen, December 2010

Nick Trefethen, July 2011

The demo with randomized block selection for standartized matrix.

Claude BERGMANN

Stefan Güttel & Nick Hale, 13th December 2011

F. Moisy, 19 nov 2008.

Toby Driscoll and Nick Trefethen, 7 October 2010

Pedro Gonnet, September 2010

The steps to accomplish to create a geometry in Blender to be used in Matlab with the geometry objects. Only the relevant steps for this task are explained here; the commands specific to

Was adapted from the scatteredInterpolant examples from Mathworks.

Toby Driscoll, November 2010

This examples shows how to exchange live data with Data Acquisition hardware using simple for or while loops and System object™ interfaces.

SEE ALSO : BPSK_MOD, FSK_MOD, QPSK_MOD

Toby Driscoll, May 7, 2011

Ver el código

The direct projection method for solving linear systems with square matrix. It is assumed that the principal minors are nonsingular.

Lloyd N. Trefethen, October 2009, revised February 2011

Binh K. Lieu and Mihailo R. Jovanovic, 6th January 2012

Asgeir Birkisson, October 2010

Nick Hale, 5th March 2012

Anonymous, 14th February 2012

Asgeir Birkisson, May 2011

This function performs interpolation over small gaps in 1D data.

Mark Richardson, 27 September 2010

SEE ALSO : ASK_MOD, BPSK_MOD, QPSK_MOD

Copyright 2016 The MathWorks, Inc.

Open diagnosticsSolverSettigns.mdl

Nick Trefethen, 16th November 2011

Paris, le 19 novembre 2017

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.

Compression of a cylindrical gel with height = L [mm] and diameter = d [mm] by Roche C. de Guzman, Ph.D. Hofstra University

Ricardo Pachon and Nick Trefethen, November 2010

Toby Driscoll, May 18, 2011

Toby Driscoll, 14th December 2011

Alex Townsend, 28th October 2011

Stefan Güttel, 30 August 2011

Alex Townsend, 6th May 2011

Demonstrates the change in the rate of convergence of the Quasi-Optimal Kaczmarz algorithm (awaiting publication).

This publishable m-file demonstrates fitcircle, a function for finding the best fit circle by least squares. The implementation is based on Least-Squares Fitting of Circles and Ellipses,

Mark Richardson, 9th May 2011

Ivanov Andrey, Candidate of Physico-Mathematical Sciences, ssauivanov@gmail.com.

This function employs the interpm function to densifiy lat/lon sampling in lines or polygons, but extends the available input units to include 'meters' or 'kilometers'. However, note that

Nick Trefethen, 13th December 2011

Nick Hale, December 2009

Marcus Webb, 23rd August 2011

Stefan Güttel, 8th February 2012

Nick Trefethen, 25 September 2010

Toby Driscoll, 8th November 2011

Toby Driscoll, 8th December 2011

Initialize a clean workspace. Save your work first!

Pedro Gonnet, 1st November 2011

Nick Trefethen, 18th October 2011

Sheehan Olver, 27 September 2010

Demonstrates the change in the rate of convergence of the regularized form of the Column-Kaczmarz algorithm.

Tom Maerz, 05 October 2010

Nick Hale, 25th November 2011

This function replaces NaN values in a 1D array by replacing them with interpolated or neighboring values. Interpolation schemes assume data are evenly spaced. This function does not

Nick Trefethen, June 2011

Mark Richardson, 4th October 2011

Nick Trefethen, 6th November 2011

This script demonstrates how to use the different abilities of the enhanced rdir function.

Nick Trefethen and Tom Maerz, 30 September 2010

Jari Fowkes and Nick Trefethen, November 2010

Stefan Güttel, 9th November 2011

Asgeir Birkisson, September 2010

Nick Trefethen, 26th October 2011

This package contains data sets collected in the Cranfield Multiphase Flow Facility aiming to serve as a benchmark case for statistic process monitoring. Details of the benchmark case are

Asgeir Birkisson, 25th January 2012

Asgeir Birkisson, 16th November 2011

Mark Richardson, 21 May 2011

Make a standard atmosphere function from an existing spreadsheet tool.

事前に測定器制御のライブラリのインストールが必要です。 この例ではVISAライブラリを利用しています。

Toby Driscoll, 20 October 2010

This demo is an example of performing data mining on historical fuel economy data. We have data from various cars built from year 2000 up to 2012.

Asgeir Birkisson, 18th October 2011

Simulation of acoustic beams from monoelement transducers is possible by using the objects, outside the NumSim simulation program. The visualization can be done using a GUI in Matlab or in

This is a Matlab GUI designed to compute the acousto-electric conductivity modulation signal and Debye signals for a given electric geometry. Different parameters are included in this GUI

Nick Hale & Natasha Flyer, September 2010

Nick Hale, 17th October 2011

Nick Hale & Stefan Güttel, 12th December 2011

This is a Matlab GUI designed to view the points used in the kernels for interpolation purposes in the meshless formulation (resolution of boundary value problems).

Stefan Guettel, 2nd November 2011

Tomas Skovranek (a) , Vladimir Despotovic (b)

This is a geometry file to be used with AFP objects.

Once we have interactively created our analysis, it is useful to now automate it in the form of file datastore so we can do similar analysis on a variety of datasets and compare the results

This is an example where a grid of scattered points is to be written with a geometry. The geometry used comes from the example #1 of EABE_v34_p30. This set of points is used for the demo on

Application where the grid where the values are known is a regular distribution of points.

Test for the good size of a matrix containing floats

This problem is an example of application using the NumSim simulation program to solve the direct and inverse problems of acousto-electric conductivity modulation imaging.

Add the cell of names to a string

Application where the grid where the values are known is a scattered distribution of points. The geometry used comes from the example #1 of EABE_v34_p30. For the purposes of the example, the

Test for the presence of a string in a list of possible values

Calling FSMEM with the data Z only, without the knowledge of the number of compounds

Test to have one integer

Resolution of multiphysic boundary value problem.

Test to have one double

This is a Matlab GUI designed to explore the geometry definitions.

Choose a web site 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 web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office