MATLAB Examples

Use scatter3

Use scattermatrixc

Scatter plot array of environmental data

Show classic and robust fits.

Use rdplot.

Scatter plot with color.

Use normalqqplot in subplot array.

This example was authored by the MathWorks community.

Qqplot for singer

Use coplot

Use simple plot with barley data.

Make a traditional plot to demo obscurity.

Use mdplot to show where Morris should have been.

Make a traditional plot to demonstrate obscurity.

Use addfit, dotplot

The xcorr3 function gives a map of correlation between grid cells of a 3D spatiotemporal dataset and a reference time series.

This exercise will take you step by step in the process of reading, displaying and analysing in a simple way a signal of an Electrocardiogram.

The Evolutionary Power Spectral Density (EPSD) [1] is compared to the well-known spectrogram implemented in Matlab. The EPSD produces a smoother signal, especially if the amount of data

Demonstrates covariance-based Stochastic Subspace Identification (SSI) as well as covariance-based SSI with reference sensors (SSI-cov/ref) using functions included in the OoMA

Covers identification of a linear, four story shear building using the built-in n4sid algorithm as well as the ssicov and ssidata algorithms included in the OoMA toolbox. The example walks

Filled contour of galaxy data with consistent colorbar

Use labels instead of legend.

Match bin range to data range.

David Leonardo Rodríguez Sarmiento

Copyright 2016 The MathWorks, Inc.

Remove average seasonal effect using seasonaloess.

The amount of electricity required to support an electric grid, also referred to as the "load" on the grid, varies signifcantly over the course of a day. An example of the load on the grid in

Use slplot.

In this example, Frequency Domain Decomposition (FDD) is used to identify modal frequencies and generate mode shapes from a numerical simulation of a plucked string.

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

The filter1 function performs frequency or wavelength filtering on a 1D array using zero-phase Butterworth filtering.

There are many different approaches and techniques for modeling systems. This script introduces some of the ways to use machine learning to forecast the electricity demand 24 hours in

This script focuses on getting the raw data aggregated in Script2 into a clean, useable form.

This script will filter through the raw weather data downloaded in Script4_WeatherDownload to pull out the desired weather stations. It then transforms the data into a more useful table

Plot data with jitter

Use boxparams, boxplotter

This script focuses on getting the raw data aggregated in Script5 into a clean, useable form.

This Live Script file will be presented to your end user in the Live Editor just as you see it here. You can take advantage of all of the features of Live Script to present information and

This script will download example weather data from the National Climatic Data Center: http://cdo.ncdc.noaa.gov/qclcd_ascii/

This function plots a power spectral density of a time series using the periodogram function.

INFAUNAL: INdividual Foraminiferal Approach UNcertainty AnaLysis

Merge the NYISO and weather data sets together and check for duplicate and missing timestamps.

Contour plot after surface fit with loess2

Use image to display soil data.

Use normalqqplot with transformed data

Use rdplot

Seasonal analysis

Plot iris computed parameters.

This script will read in the separate files for each day and combine them into a single table. This script could take a few minutes to run depending on the amount of data being aggregated.

The present example is similar to the one used in [5], where the dynamic response of a 100 m high clamped-free steel beam was studied. Simulated time series are used, where the first 4

Show fit after log transform.

Use rfplot

Use powerxform, normalqqplot.

Quantileplot for singer

Compare loess parameters.

Use normalqqplot

This script will download electricty load data from the New York ISO: http://mis.nyiso.com/public/

Use slplotr after log transform.

Use scattermatrix

Filled contour of soil data with custom colormap

Compare mean and standard deviation for groups.

Use jitter

Alternative display of data.

Use slplotr

Plot data with poly fits.

Use bank45 to adjust aspect ratio.

Use rdplot after log transform.

Plot group mean residuals.

Use multidotplot

Compare loess fits.

Apply loess smoothing to sunspot data. This helps comparison with melanoma data.

Plot ganglion data

Contour plot after loess2 surface fit.

Use rfplot after transform.

Plot residuals from loess. Use bank45.

Mdplot for singer

Simple plot with bank45

Simple plot.

Use boxparams, dotplot

Contour plot with inline labels and loess2.

Use addfit, rfplot

Apply jitter.

Use normalqqplot after transform.

Plot group mean values with trend line.

Filled contour of galaxy data with yellow to red colormap

Use equalcount, givenplot

Simple data plot

Use quantileplot

Contour plot.

Mesh plot after surface fit using loess2

Filled contour plot after surface fit.

Simple plot for dating.

Use rfplot.

Plot without bank45

Authors: Alice Andalò, Davide Borra

Surface plot with lighting

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