MATLAB Examples

This example was authored by the MathWorks community.

From the results of an impressively thorough survey by Randall Munroe of XKCD, this function returns the RGB color triplets for just about any color name you can think of. In keeping with

This function evaluates a simple sigmoid function along x such that

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.

Solution to Laplace equation in spherical coordinates.

This scripts demonstrates the capabilities of the heatmap visualization function.

Author: Bhartendu Thakur, Viji Narayan

Dynamic Matrix Control (DMC) was the first Model Predictive Control (MPC) algorithm introduced in early 1980s. Nowadays, DMC is available in almost all commercial industrial distributed

Collect and then display latitude and longitude data on a satellite map image.

StoichTools comprises a set of Matlab functions for doing stoichiometric analysis. These functions parse standard chemical notation for a variety of stoichiometric calculations

Use the MATLAB® Support Package for Arduino® Hardware to communicate with DS18B20 temperature sensor and DS2431 EEPROM

How to create a 3D scatter plot in MATLAB®.

I'm positive that some simple UML-diagrams could help us organizing our Matlab code. See UmlAsSketch by Martin Fowler.

The scope of these two functions is to organize a flat dataset into a PIVOT table (and eventually undo it). This guide will illustrate how to use them.

The goal of this program is to demonstrate the construction of a huffman encoding tree. The tree is represented as a binary tree using MATLAB's built in treeplot commands. Contruction of the

Mark Text -> change Font -> change Background color

Test for Rudin-Osher-Fatemi denoising (ROF) using FB-like method.

These function, mp3read and mp3write, aim to exactly duplicate the operation of wavread and wavwrite for accessing soundfiles, except the soundfiles are in Mpeg-Audio layer 3 (MP3)

Gaston Julia studied complex dynamics in the early 20th century, and part of his work examined the behavior when a rational function is iterated. In other words, the result of calling some

How to create a 3D plot in MATLAB®.

The Antoine class provides a computational framework to help doing simple vapor-liquid equilibrium calculations in Matlab. These notes introduce Antoine's equation, then shows how the

How to create animations and animated GIFs in MATLAB®. In this example, we will animate the motion of a double-pendulum. We solve the ordinary differential equation using ode45.

Author: Zhiming Zhang

This is a simple example of how to fit data using the logistic function. For more information, please visit: http://en.wikipedia.org/wiki/Logistic_regression

According to LEAN thinking, a company's level of waste tells a lot about its effectiveness, its internal organization, and its strategic planning. Mantain high quality standards and low

This is short demo that loads and renders a 3D model of a human femur. It showcases some of MATLAB's advanced graphics features, including lighting and specular reflectance.

Authors : Andrea Gargano, Paolo Seghetti, Niccolò Biasi

This toolbox provides a set of Simulink virtual environments to aid in robotics educations. Users can interact directly with robots via actuator and sensor blocks to learn to program robots

This file is designed to help you oonvert JSON strings into MATLAB-usable data. Note that it works with a string, not a file, so you have to load in the file yourself.

The ibcso function plots International Bathymetric Chart of the Southern Ocean (IBCSO) digital bathymetric model dat using using Antarctic Mapping Tools. IBCSO data are described in full

________________________________________________________________________________________Javier López Ríos (2017)

Word error rate (WER) is a measure (metric) of the performance of an automatic speech recognition, machine translation etc.

This video tutorial will show you how to link plots to their data sources providing a live view of a variable and how to carry out data brushing, letting you select and manipulate data

How to create an inset plot within another plot in MATLAB®.

This demo file teaches about the aliquot parts of a number, and how to use the functions I've provided.

Bubbleplot creates 2D and 3D scatter plots of multivariate data. Up to 7 dimensions of data can be visualized by using marker color, shape, size and text annotations to convey information

Authors: Alexander Ivanov (1), Vasily Chirkin (2)

This tutorial is adapted from one published by Sparkfun here and licensed under Creative Commons Attribution Share-Alike 3.0 Unported License.

Demonstrate ricernd, ricepdf, and ricestat, in the context of simulating Rician distributed noise for Magnetic Resonance Imaging magnitude data.

Fuzzy Search aka Approximate String Matching, Text Searching with Errors.

Stipple creates a hatch filling or stippling within a grid. This function is designed primarily to show regions of statistical significance in spatial maps.

How to create a histogram plot in MATLAB®.

The legappend function adds new entries to a legend. This is good for making PowerPoint slides, when you may want to start by plotting a few data sets, then add data to your plot one entry at a

How to create wind flow visualization in MATLAB®.

F. Moisy, 28 april 2010.

RotmanTrader - connects to and manages data and trading through Rotman Interactive Trader

Sinefit fits a least-squares estimate of a sinusoid to time series data that have a periodicity of 1 year.

The ibcso_interp function interpolates bed elevations from the International Bathymetric Chart of the Southern Ocean (IBCSO) digital bathymetric model. IBCSO data are described in full

How to visualize vector fields with streamlines in MATLAB®. Vector fields contain vector information for every point in space. For example, air flow data inside a wind tunnel is a vector

Besselzero calculates the zeros of Bessel function of the first and second kind

This demo uses MATLAB and the Technical Analysis (TA) Developer Toolbox to create and test a pairs trading strategy. The TA Developer toolbox complements the existing computational

The ibcso_data function returns IBCSO bathymetric data and corresponding geographic or polar stereographic cartesian coordinates. IBCSO data are described in full on the IBCSO website

Use the MATLAB® Support Package for Arduino® Hardware to control an Adafruit NeoPixel RGB LED strip.

Set the motor voltages to have the robot move forward

Load Monthly Climatic Data of the World dataset from Berkeley Earth and plot the average temperature computed on the available dataset for the 12 months of the year.

The position of the sun is an afterthought for most, unless it is blinding you on your commute home. However, the position of the sun remains incredibly important, even in the modern age. While

The spiral function makes a spiral plot that shows the annual nature and long-term trend of a time series.

We examine a linear elliptic partial differential equation in two spatial dimensions with homogeneous Dirichlet boundary conditions and parameterized scalar coefficients. For , let

The test along with its experimental results is described in:

This series of lectures describes the MATLAB® scientific computing environment and how it can be used by physics students.

Use the MATLAB® Support Package for Arduino® Hardware to implement sequence lighting effects on an Adafruit NeoPixel RGB LED Strip.

Capture the orientation of the mobile device. We define the orientation as a combination of three angular quantities: Azimuth, pitch, and roll. The three quantities are defined based on the

Sinefit_bootstrap performs a bootstrap analysis on the parameters estimated by the function sinefit. Bootstrapping means applying the sinefit function to a bunch of subsamples of the

There are four plotting routines that have been adapted for plotting variables with units. These are

Sineval produces a sinusoid of specified amplitude and phase with a frequency of 1/yr.

Uses Lucas-Kanade method on two images and calculate the optical flow field.

Emma Gau

We can estimate the time of sunrise and sunset for any location on the earth if we know the latitude, longitude, and UTC offset for that location. To estimate sunrise and sunset for any day of the

How to create a polar plot in MATLAB®.

Principal Component Analysis (PCA) and Partial Least Squares (PLS) are widely used tools. This code is to show their relationship through the Nonlinear Iterative PArtial Least Squares

The forces on an airplane can be evaluated in a wind tunnel or through computational modeling. When this is done, it is common to summarize the results of the data in a simple mathematical

The gif function is the simplest way to make gifs. Simply call

Created by Brighton Ancelin

Author: Tobias Neuhauser

Given a triangulation, we want to find the indices of the triangles containing some query points, along with their respective barycentric coordinates. We compare the computation times for

The Chaos Game is a mathematical method used to create a sequence of points iteratively using a simple set of rules. In the Chaos game we start with a random point, use the rules to generate each

How to create a contour plot from a function in MATLAB®.

Simulation for energy dection method of sigal detcetion in cognitive radio and its problity of detection for different snr values with AWGN channel.

Author: Ivan Michele Caiazzo

The wind field is now simulated along a vertical line (e.g. a wind mast). I use the input file INPUT_MAST.txt with 20 nodes created along a vertical line, for altitudes ranging from 10 to 90 m.

Use the MATLAB® Support Package for Arduino® Hardware to control a three-axis L3G gyroscope that measures the angular rates of rotation about the roll(X), pitch(Y) and yaw(Z) axes.

This is a demonstration of using the topoplot_connect.m function. This function is only slightly modified from the original topoplot.m function which is part of EEGLAB. I have used EEGLAB

The wind field is now simulated on a circle defined in the vertical plane (yz) normal to the flow. The function windSim2 is therefore used with two input files:

Author: Shujaat Khan, shujaat123@gmail.com cite: @article{khan2018novel, title={A Novel Fractional Gradient-Based Learning Algorithm for Recurrent Neural Networks},

The Star Wars API provides open sourced data to explore and analyze the universe:

This function plots a polynomial fit to scattered x,y data. This function can be used to easily add a linear trend line or other polynomial fit to a data plot.

The following example compares different numerical methods to simulate the response of a SDOF subjected to forced harmonic forces in the time domain. The exact solution is in addition used

Spl returns sound pressure level in decibels for an input signal p_Pa in pascals. A reference pressure ref must be declared in units of pascals or specified as 'air' or 'water' to use standard

Copyright 2010, Bill McKeeman, Dartmouth College

Copyright (c) 2008 Gabriel Peyre

Illustrates a MATLAB® Coder™ based workflow for running MATLAB code on Raspberry Pi. MATLAB Coder generates readable and portable C / C++ code from MATLAB code, supporting most of the MATLAB

How to add text to a plot in MATLAB®.

In this demo we use the SDE framework in the Econometrics Toolbox to implement various random walks.

Neural network simulation function.

Kevin Chng

This is an example showing standard markers available in MATLAB® plots.

Test for DR algorithm for L1 minimization (BP). We do here a compressed sensing resolution (random matrix).

In this function to solve Equation of Motions for different modes, Newmark Linear Method has been used. By modifying inputs F & ft, you can analyze the structute for either earthquake

It is well-documented that the Golden Ratio is observed in the angular geometry of seeds in sunflowers, coneflowers and pinecones, as well as other plants and natural phenomena.

This document explains how to use the setup function and online controller returned by ssmpcsetup.

An industrial structure is modeled as 2-DOF system as shown in the following figure. Determine the lateral displacement, base shear and base moment of the structure due to El-Centro, 1940

Flow cytometry is a method for quantitating components or structural features of cells primarily by optical means. Although it makes measurements on one cell at a time, it can process

Use the MATLAB® Support Package for Arduino® Hardware to control a capacitive sensor built with foil connected between two digital pins on Arduino.

Treemaps display data using the relative areas of nested rectangles. See http://en.wikipedia.org/wiki/Treemapping for more information.

These functions convert RGB color triplets to hexadecimal format, or hexadecimal format to RGB color triplets.

The anomaly function plots line data with different colors of shading filling the area between the curve and a reference value. This is a common way of displaying anomaly time series such as

Several examples show how to use the gkdeb2 function.

Matlab implementation of Flickr-compatible OAuth

Section 5.5.1 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

How to create a 3D bar chart in MATLAB®.

A Torus is a geometric surface that can be represented by a doughnut: from any point on the surface, moving up/down or left/right will eventually lead you back to where you started, to continue

In this example we will explore some data on exoplanets - planets outside our own solar system. The data used here is a subset of data from the NASA Exoplanet Archive .

This file shows a few examples of how to use Arctic Mapping Tools for Matlab.

Implementation according to Fengler (2009) with example data taken from Appendix B.

This function lightens or darkens plotted objects.

File : haar_featlist

A Question on Experiments with Bouncing Balls

The relationship among pressure, volume, and temperature of a gas such as air are frequently modeled using the ideal gas law:

How to create subplots in MATLAB®.

By Jarek Tuszynski (jaroslaw.w.tuszynski@leidos.com)

This tutorial demonstrates the use of the Optical Fibre Toolbox for calculation of the three-layer (core-cladding-surrounding) fibres. First, the specification of such structures is

Implementation of a simple numerical schemes for the wave equation.

An electric vehicle is proposed in which each of the rear wheels is powered by a permament magnet Direct Current (DC) motor. Engineers have to decide what motor to place in their vehicles which

The following initial definitions are made (in the order presented below):

Mathematically, this is an example of the change of variable theorem for integrals of multidimensional functions [1].

This function plots circles.

In this example, we explore the use of diagonal loading of the sample correlation matrix to control the sidelobe levels of the SMI adaptive beamformer using the same set of parameters as in

A boost converter is a circuit that steps up voltage (while stepping down current) from its input (a DC supply like a battery) to its output. It usually contains at least one switch, a diode , and

Beginning in MATLAB R2018a, you can create durations from text using the duration function. The text2duration function is intended to provide similar functionality for earler releases,

This function plots formatted histograms. It's similar to hist, but with more options for FaceColor, BarWidth, LineStyle, FaceAlpha, etc.

The following document was built from posts written for the blog "Loren on the Art of MATLAB". The ideas presented below in anonymous functions have been written as .m files so that they might

Molecular simulations need physically sound starting structure/configurations (especially of multi-component systems), as well as a correct molecular and forcefield specific

How to create an errorbar plot in MATLAB®.

Will show how to create a simple, yet sensitive motion detector using a photoresistor and an Arduino controlled by the MATLAB Support Package for Arduino Hardware. A photoresistor is a

Presents the generation of a turbulent wind field along with a horizontal line, assimilated to a bridge deck. The flow is assumed homogeneous and stationary along the deck.

The Keysight Infiniium application can load waveform data from a MATLAB® .mat file. The file must contain a set of required information, and be formatted in the right way. Waveform data, for

This script demonstrates using the function clickableLegend to generate interactive legends that hide or highlight objects in the axes when clicked or when the corresponding legend item

How to create a 2D scatter plot in MATLAB®.

How to add LaTeX equations to plots in MATLAB®.

This code solves a test problem involving a Poisson equation on a square domain. The method relies on Lagrangian finite elements on a uniform triangular mesh. The solver is documented in the

Materials and sections

Use the rotmanTrader functions to connect to and trade through Rotman Interactive Trader (RIT). RIT must be installed on your computer along with the Excel® RTD Links. For more information

How to create a stacked bar chart in MATLAB®.

(C) 2013 Matthew harker and Paul O'Leary Institute for Automation University of Leoben A-8700 Leoben Austria

Demonstrates how to use persistent variables when loading data in a function. Doing things this way guarantees that the "data" value in persistentFunction is only loaded or changed when

Prefixes can be used with defined unit names to expand the scope of unit names. You can, for example, create kilometers from meters by adding the prefix "kilo".

Illustrates a workflow for modeling an audio processing application in MATLAB and deploying C/C++ code to create a standalone application on a Raspberry Pi. MATLAB coder generates

Corrmap returns an (N-1)-dimensional array of correlation coefficients between y and A along dimension dim of A.

This script generates a Mackey-Glass time series using the 4th order Runge-Kutta method. The code is a straighforward translation in Matlab of C source code provided by Roger Jang, which is

This function plots vertical or horizontal errorbars. Error bars may be symmetic or asymmetric about their data points.

How to create a contour plot in MATLAB®.

This function creates a title centered at the top of a figure. This may be used to add a title to a figure with several subplots.

The BertiniLab package is designed to convert numerical MATLAB® functions into text files that can be used as input to the numerical algebraic geometry package Bertini. This package can

How to create a surface contour plot in MATLAB®.

How to create a graph plot in MATLAB®.

Pressure-Enthalpy Diagram

This function computes the numerical solution of the Mackey-Glass delayed differential equation using the 4-th order Runge-Kutta method

Borders plots National or US state boundaries without Matlab's Mapping Toolbox. If you want to plot borders on a map generated by Matlab's Mapping Toolbox, use bordersm instead.

How to create an line plot with legend in MATLAB®.

Copyright 2013 The MathWorks, Inc.Published with MATLAB® R2013a

URLFILTER is designed to make it easy to scrape data from websites.

Use the rotmanTrader functions to connect to and accept/decline tender offers through Rotman Interactive Trader (RIT). RIT must be installed on your computer along with the Excel® RTD

The bedmap2 function uses simple commands to plot Bedmap2 data. If you have Matlab's Mapping Toolbox, data are plotted in georeferenced coordinates. If you do not have the Mapping Toolbox,

How to create a vertical bar chart in MATLAB®.

Several examples show how to use the gkdeb function.

Stephen Goldrick (c), September, 2014 Newcastle University/Manchester University/ Perceptive Engineering

This code demonstrates a simulation of a spiral galaxy in MATLAB using the density wave theory.

Lemniscate sine function

(one of constant-unconditional-intensity, first-order, exponential-decay type)

Creating a chart of built-in colormaps in MATLAB®.

This script demonstrates the use of Optical Fibre Toolbox functions for calculation of two-layer fibres modes.

Connect to and stream data from Rotman Interactive Trader (RIT) using rotmanTrader functionality. RIT must be installed on your computer along with the Excel RTD Links. For more

Use the MATLAB® Support Package for Arduino® Hardware to control a three axis LSM303 accelerometer and magnetometer.

How to set axes positions in a plot in MATLAB®.

Description and guide for the Blast Loads Toolbox for MatLab by Viking and Co. 2017

The modal properties of a M-DOF system are identified by using the SSI-COV method. For this example, I am using simulated displacement records using a simple model of the Lysefjord bridge

In part one, part two, and part three of this series of blog post I went through the process of reading voltages from a network of XBee® modules, building and testing my wireless network of

A "unit" statement accepts a number and a unit name and converts these to international units (SI). There are just seven different units in the international system of units. These are:

Copyright 2016 The MathWorks, Inc.

Copyright 2017 - 2027, Ilias S. Konsoulas.

The basic procedure of connecting and acquiring data.

This tutorial describes some of the basic concepts in calculating Antarctica's potential contribution to sea level rise. It also shows how you can do it with Antarctic Mapping Tools for

I wanted to look at the underlying space of two factors that went into the overall score for the contest, and see how they related to the length of the entry. The main factors are the result,

CAUTION: The "lde_demo.mlx" link on the File Exchange page may bring up a corrupt version of this file. Download the zip file and extract the uncorrupted lde_demo.mlx from the zip file. Also

How to add a vertical colorbar to a plot in MATLAB®.

If the user has passed a previous PowerPoint session:

Computation of displacement repsonse of a cantilever beam subjected to a random load, represented here by an uncorrelated white noise.

How to create a y-axis semilog plot in MATLAB®.

VARIABLES: Z - array of element numbers contained in the material Ratios - array of element ratios in the material MatStr - string representation of the material

Jacobs et al. did a nice job of combining several data sets in their 2013 JGR Oceans paper titled "Getz Ice Shelf melting response to changes in ocean forcing." Figure 4 of their paper may look a

Bedmachine_data loads data from Morlighem et al.'s BedMachine datasets.

This problem uses a board game call Mastermind to introduce ideas about experimentation and computational thinking. In this game, in any given round of play, one player serves as the

By Bill McKeeman

This function provides an option between the legend and text or annotation commands for labeling data that you plot. Edward Tufte says that data shouldn't stray far from its label, because

How to create a surface plot in MATLAB®.

How to create a stair-step plot in MATLAB®.

How to create an area plot in MATLAB®.

Size d and number of storeys n

In this example, the number of elements varies while the element spacing is always .

Set output methods

How to create a simple stem plot in MATLAB®.

How to create an line plot in MATLAB®.

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

How to create a heatmap chart in MATLAB®.

If carefully built, a sundial is perfectly capable of keeping accurate time. The problem is that you need a different sundial for every combination of latitude, longitude, and day of the

The antbounds function plots line data from the line data in the MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar dataset Version 2.

Authors: Caterina Samela (caterina.samela@unibas.it); Salvatore Manfreda

The flowline function predicts ice flowpath(s) based on MEaSUREs InSAR-derived surface velocities.

How to create a 3D mesh plot in MATLAB®.

How to create subplots with multiple plot types in MATLAB®.

How to create a simple pie chart in MATLAB®.

The data are room impulse responses measured in a control room type space in home environment.

A simple coil geometry is the Archimedean spiral. Its windings are in one plane, and they all have the same distance.

This is the code documented in the tutorial on Polynomials in MATLAB. (This published MATLAB code, only presents the code implementation. The PDF document on the tutorial also includes the

The cmocean function returns perceptually-uniform colormaps generated by Kristen Thyng. A detailed description of the cmocean project is available at http://matplotlib.org/cmocean.

How to display a simple image in MATLAB®.

A signal received by a ULA with M = 20 elements and spacing contains both a signal of interest at with an array SNR of 20 dB and thermal sensor noise with unit power . The signal of interest is an

How to create filled polygons on a plot in MATLAB®.

How to create an exploded pie chart in MATLAB®.

By Kotya Karapetyan, kotya.karapetyan@gmail.com, 2011--2012.

Creating area charts, bar charts, and pie charts with some annotation in MATLAB®.

The idea of the CREATIVITY visualization is to find most creative participants of the contests. They are two versions of election of the most creative authors. In the first case the most

This is how we import any .gro | .pdb | .xyz file

The data are room impulse responses from left and right channel of a a home theater system.

By Bill McKeeman August 17, 2008

SVD_LAPACK computes the singular value decomposition of a matrix by calling LAPACK subroutines: ZGESVD or ZGESDD.

Modismoaps initializes a MODIS Mosaic of Antarctica (MOA) image or adds a MODIS MOA to an existing map. This function does NOT require Matlab's Mapping Toolbox. It also does NOT hijack the

Test for ADMM algorithm convergence on a randomized example.

This interface allows users to access the Barchart OnDemand REST API directly from MATLAB.

Gaussian part

The phasemap function returns or sets a cyclic colormap with a constant lightness profile appropriate for plotting phase. The phasemap function is a break-out colormap from the cmocean

(c) 2013 Matthew Harker and Paul O'Leary

How to produce an interpolated lighting across the surfaces in MATLAB®. This lighting is good for viewing curved surfaces.

How to customize a plot to make them publication quality in MATLAB®.

File describes how anyone, even you! can create a map of sea level rise using data from the University of Colorado's Sea Level Research Group.

Example 4.2 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

This demo constructs and solves a simple parameterized matrix equation with a parameterized matrix of size 2x2. Given , consider the functions and defined on that satisfy

The notation followed here and in the following MATLAB codes:

Create a scatter plot of cars organised by weight, MPG, price and make

One problem with living in Boston is that my apartment is old and drafty. I have one thermostat that is located in the center of the apartment, and I often find that even though the thermostat

By Jarek Tuszynski

How to create a stem plot with multiple data in MATLAB®.

This is the most useful diagram for visualizing the contest. It shows the dramatic improvements that occur over time. Each passing entry is a dot, with its submission time on the x-axis and

The Keysight Infiniium application can save waveform data to a MATLAB® .mat file, so that you can work with it directly in MATLAB. One way to read the data is to use the MATLAB load function to

How to create a log-log plot in MATLAB®.

This function searches the USGS website for low-resolution Landsat 8 images of specified path and row number and plots the most recent image in georeferenced coordinates.

The InfiniiumWaveform Toolbox lets you easily modify, in Matlab, data acquired on the scope, and then load the results back onto the scope. This demo starts with a .mat file saved by the scope,

This function creates axes in tiled positions. It is similar to subplot, but uses the entire figure window with no space between subplots. The name smplot is used to invoke "Small Multiples"

This function creates a legend whose patch objects match the transparency (alpha values) of plotted patch objects. Syntax follows legend exactly. In fact, if you so desire, you could always

A Mathematical Modeling Example Using a an RC circuit

The key building block of the parametized matrix package (pmpack) is the expansion of a vector function in an orthogonal polynomial basis. This demonstration shows how we work with these

Gmb_data loads gravimetric mass balance data from TU-Dresden (Groh & Horwath 2016).

The functions in this plugin for Antarctic Mapping Tools for Matlab are intended to simplify the process of Antarctic data masking and mapmaking. These functions are built on the MEaSURES

A good programming practice is to make sure that you leave your program environment in a clean state that does not interfere with any other program code. For example, you might want to

How to create a 3D ribbon plot in MATLAB®.

Find the balanced reaction for the complete combuston of octane to carbon dioxide and water.

The polysym class is a symbolic manipulation package that helps users to put equations in a form that Bertini can read. It is similar in behavior to the sym class in the Symbolic Math Toolbox,

Example 5.3 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

By: Roche de Guzman, Ph.D.

You can create a PDF or HTML version of this MATLAB file by choosing opening it in the MATLAB Editor and choosing "File > Publish ..."

This function plots daily Antarctic sea ice concentration from Nimbus-7 SMMR and DMSP SSM/I-SSMIS Passive Microwave Data or Near-Real-Time DMSP SSMIS Daily Polar Gridded Sea Ice

How to create a rose plot in MATLAB®.

How to create a 3D line plot from a function in MATLAB®.

How to display multiple images in a subplot in MATLAB®.

From this post on the MATLAB Graphics blog .

Below is a brief overview of the Bedmap2 Toolbox for Matlab. Information about the Bedmap2 project can be found here and here.

The outlineashelf function outlines the ice shelf 'shelf' on a map of Antarctica.

The data is a measurement from a class room The documentation of the measurement is found at http://legacy.spa.aalto.fi/projects/poririrs/

We want to explore the effect of the number of training samples on the sidelobe levels of the SMI adaptive beamformer. To this purpose, we generate an interference signal at with a power of 70 dB

How to create a curve with lower and upper bounds in MATLAB®.

The scatstat1 function returns statistical values of all points within a given radius of each value. This is similar to taking a moving mean, but points do not have to be equally spaced, nor do x

Sodb_profile plots oceanographic profiles along a given transect.

The newcolorbar function creates a new set of invisible axes matching the size and extents of the current axes. This allows a second colormap to be used in such a way that it is perceived to be two

Test the use of Forward-backward-like splitting for the resolution of a compressed sensing regularization.

How to create a 2D quiver plot in MATLAB®.

How to create an x-axis semilog plot in MATLAB®.

How to change color shading style for surface and patch objects in MATLAB®.

It is well-documented that the Golden Ratio is observed in the angular geometry of seeds in sunflowers, coneflowers and pinecones, as well as other plants and natural phenomena. (

This function creates color-scaled text labels.

Author: Ameer Hamza Khan

The argodata function downloads Argo profile data and imports it into your Matlab workspace for easy workin' with.

C = multic(A,B)

This is an example showing standard line styles available in MATLAB® plots.

UML Sequence Diagrams are a good way to express flow control in a program, or show the lifetime of objects in an OO system.

By Matthew Simoneau

The vertical eigen-frequencies and mode-shapes of the Lysefjord Bridge, based on data obtained from [1,2,3], are computed using the formulation proposed by [4]. The results are compared

Antmap is part of Antarctic Mapping Tools for Matlab (Greene et al., 2017). Click here for a complete list of functions in AMT.

Dist2mask returns the distance in kilometers from given datapoints to any mask type (grounded, iceshelf, etc.) according to MEaSURES Antarctic Boundaries for IPY 2007-2009 from

Author: SHUJAAT KHAN

In part one and part two of this series of blog posts I went through the process of reading voltages from a network of XBee® modules, building and testing my wireless network of temperature

How to create a directed graph plot in MATLAB®.

Uses datefig from the file exchange and a mex version of NREL's C/C++ source for SOLPOS.

Xyz2grid converts regularly-spaced columnated x,y,z data into gridded data.

Example 1.10 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

Bedmachine_interp loads data from Morlighem et al.'s BedMachine datasets.

How to create a polar histogram in MATLAB®.

This is an example showing standard colors available in MATLAB® plots.

A number of people have asked me whether MATLAB can add text to heatmaps to show the exact values. This is very easy to do, however, making a the text robust to resizing, zooming and other

As a test, randn generates a matrix that is not symmetric nor is it at all positive definite in general.

This problem aout the coumpound gear trains inside servomotors. Many devices such as radio controlled toys, remotely operated drones, and industrial automation requires that high

Demonstrates the advanced usage of PIVsuite for obtaining the velocity field from a pair of images. Contrary to the previous example (example_02_Image_pair_standard.m), additional

Library of transforms (moment generating functions) of commonly ecountered jump distributions in finance. Part of the CFH Toolbox.

Computation of displacement repsonse of the vertical displacement of a suspension bridge to a random load, represented here by an uncorrelated white noise.

How to create transparent objects in MATLAB®.

How to create a polar plot from a function in MATLAB®.

The cbarrow function places triangle-shaped endmembers on colorbars to indicate that data values exist beyond the extents of the values shown in the colorbar.

You can use the accelerometer in your mobile device to count steps in MATLAB.

The rtopo2_data function loads data from RTopo-2 (Schaffer et al. 2016, see reference below).

This demo illustrates the computation of a solution family to the boundary value problem

Assuming that a remote sensor is measuring the wind field for a radial distance ranging from 50 to 1000 m. The scanning azimuth is oriented from North (0 deg) to North-North-East ( 80 deg):

In this code, we drive the Capacity of a MIMO system over Rayleigh fading channel with different number of transmit and receiver antennas. For each setting of a MIMO channel, after

How to create an line plot from a function in MATLAB®.

How to create a surface plot from a function in MATLAB®.

The different possibilities for this special type of wind rose are summarized below

This is an illustration of the generation of a non-gaussian random process based on a gaussian one. This method applies well for low skewness, and high kurtosis.

Returns the characteristic function evaluation of commonly encountered models in finance. Part of the CFH Toolbox.

Compute call option prices from characteristic function. Part of the CFH Toolbox.

These functions create horizontal or vertical shaded regions on a plot. The syntax for both functions is the same.

Falko Schindler, August 6, 2012

There are just two statements which comprise the operations needed to assign units to variables and convert a unit to an equivalent unit of measure. Units are assigned to variables with a

Bedmachine_profile plots a 2D profile of ice, water, and rock elevations along any path in Greenland or Antarctica. The data are from Morlighem et al.'s BedMachine datasets.

How to add lines to a plot in MATLAB®.

In this example a nonlinear vector equation is solved for various values of the Newton-Raphson algorithm parameters. The vector equation to be solved is comprised from 2 nonlinear

Let's import some molecuel and translate it with a 1x3 translation vector.

How to create a bivariate histogram in MATLAB®.

The dirPlus function recursively collects a list of files or subdirectories from a folder tree, allowing you to specify the selection criteria for how the list is collected and formatted.

The rtopo2 function plots Antarctic data from RTopo-2 (Schaffer et al. 2016, see reference below) in projected polar stereographic coordinates.

How to create a 3D pie chart in MATLAB®.

To monitor an object you first need to add an event to the class definition of the object, such as in this example. (see ev.m). Here we add an event called SavedData to this class which denotes

A few examples of 3-d image smoothing through multivrant kernel regression: ksrmv.

Mathematical Modeling of Linkages: Analyze an Engine

Use the MATLAB® Support Package for Arduino® Hardware to control an Adafruit NeoPixel RGB LED Strip to visualize current temperature using TMP36 temperature sensor.

The scatstat2 function returns statistical values of all points within a given radius of each value. This is similar to taking a moving mean, but points do not need to be equally spaced.

This (publishable) script nndemo.m demonstrates the features of the nearestneighbour function.

This script compares using the functions size, length, and storing the value of an array before entering a for loop. This is important because of the time wasted calling size() or length() in a

The calculation of the eigen-frequencies and mode shapes of a suspension bridge using the present Matlab code is based on the theory of continuous beam and the theory of shallow cables. The

Formaldehyde is produced on an industrial scale by the incomplete oxidation of methanol in air. Principle by-products include formic acid, carbon dioxide, and carbon monoxide. Find a set

Below we show how BertiniLab can be used to set up and solve a simple example, the system of equations

Compare multiple sample distributions using a statistic of the maximum difference in probability of cumulative distributions. An extension of the Kolomogorov-Smirnov test to compare

This script demonstrates the application of constrained basis functions to the solution of the simplest Sturm-Liouville problem, This script is very simular to the script

How to customize axes settings in a plot in MATLAB®.

Many directed graph, or digraph, applications drop the vertex labels to focus on computations of the Adjacency Matrix, referring to the vertices only by their indices. The digraph class

How to create a triangular plot in MATLAB®.

Here we recreate some of the figures from Fretwell et. al's 2013 Cryosphere paper titled "Bedmap2: improved ice bed, surface and thickness datasets for Antarctica."

The great Roger Miller once sang, As long as there's a hill there's a valley / Long as there's a valley then the river can flow free / As long as there's a Sun there's a shadow / As long as there's a

This function downsamples 1D or 3D data to monthly, yearly, hourly, minutely, or secondly data. This function was originally designed to create monthly mean time series from daily

Jonas Almeida, April 2010

Given a URL read the table and return it with a cell of tables format.

We illustrate the use of tapers with the spatial matched filter for the extraction of a radar signal in the presence of a jamming interference source using a ULA with M = 20 elements with

We are going to create a class to describe the sensor array data set. First we will look at specifying the properties. You define a class in MATLAB with a class definition file.

Write numeric data to a SAS dataset

This demonstration uses the 'ab' example of AUTO to demonstrate the use of Matlab functions with the Dynamical Systems Toolbox in the DST mode.

This code solves the test problem of a thermally driven flow in a rectangular enclosure with an aspect ration of 8:1, as described in Christon et al. (2002). The method relies on Taylor-Hood

There are an awful lot of polar datasets out there, and each one seems to be packaged in a different format. Antarctic Mapping Tools is a collection of functions intended to streamline the

To demonstrate the optimum beamformer, we consider a scenario in which there are three interference sources and compare it to a conventional beamformer (Spatial Matched Filter). The array

How to create a plot with two y axes in MATLAB®.

The present example illustrates the calculation of the Obukhov length using the eddy-covariance method. The input is made of time series of the along-wind and vertical wind velocity

The heatflux_interp function returns basal geothermal heat flux from the Community Ice Sheet Model (CISM).

In part one of this series of blog posts I went through the process of reading voltages from a network of XBee® modules, and building and testing my wireless network of temperature sensors. In

This presentation proceeds in stages, each version an extension of its predecessor (bootstrapping). The development stops well short of an industrial compiler but that is not because of

We consider several ways to 'prettify' spy output, all using colored squares to denote elements of S.

No coupling is introduced here, to keep calculations simple.

Demonstrates the standard usage of PIVsuite for obtaining the velocity field from a pair of images. Contrary to the previous example (example_01_Image_pair_simple.m), common

In this application, MATLAB® is used to wirelessly control an LED using two XBee Series 2 modules. A mini photocell is used to wirelessly monitor the state of the LED. By integrating MATLAB

Albmap_data loads data from Le Brocq et al.'s ALBMAP datasets.

Inbasin returns true for coordinates inside a given basin in the MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar dataset Version 2.

This function plots a 2D profile of ice, water, and rock elevations along any lat,lon path in the Antarctic.

How to create a categorical histogram plot in MATLAB®.

How to create an line plot with markers in MATLAB®.

This script is presented here as part of many of them to achieve HSDPT displacements, strains and stresses solution. Particularly, this theory is used to treat all sides simply supported

M2uml 1.1 includes new feaures

Function cfeval calculates cash flows of fixed-income portfolios and structured products, given a quasi-symbolic, Matlab-syntax, typically recursive description of principal and

The fullfig function creates a full-screen figure.

This demo illustrates the computation of a solution family and its bifurcating families for a discrete dynamical system. Also illustrated is the continuation of Naimark-Sacker (or Hopf)

PlotColors(colors) will draw patch objects with FaceColor property specified by colors for visual inspection of colors

The uniform-shear model is computed with the parameters used in Mann

The fopprofile function creates a vertical profile of surface elevation, bed elevation, and aircraft elevation along a flight line given waypoints. This function does NOT require

The slope2 function returns magnitudes of slope of a surface.

ROT_DSVD2X2 computes the real rotation matrices to obtain the singular value decomposition of a 2-by-2 real matrix.

The rocket trajectory consists of three phases - acceleration, uniform movement and deceleration.

The problem of Feature Selection is: Given a (usually large) number of noisy and partly redundant variables and a target that we would like to predict, choose a small but indicative subset as

Author: Mayank Jhamtani

A Question on Data Analysis for Rock Sawing

How to create a mesh plot from a function in MATLAB®.

The vertical bridge response is now computed for different values of the mean wind velocity, and compared to displacements from a time domain simulation.

An XPath package started shipping as part of Java 5, so we can use it from MATLAB. This is a simple example.

This should be zero. Ok, its a trivial test case.

Truth: 0

Demonstrates the simplest possible use of PIVsuite for obtaining the velocity field from a pair of images. For running this example, you need Matlab 2013a or higher.

When plotting some function, it is often desirable to cover the function domain uniformly. In this short document, somewhat different way to create almost equally-spaced values for

The Critical flutter velocity is computed for 2 single-span suspension bridges: One with a main span of 1.2 km and the other one with the main span of 0.45 km. The coupling of the lateral,

Accumulation_interp returns accumulation data, interpolated to any lat,lon point, line, or grid. This function is a plugin for the Antarctic Mapping Tools package.

The rtopo2_interp function interpolates data from RTopo-2 (Schaffer et al. 2016, see reference below).

C2XYZ returns the x and y coordinates of contours in a contour matrix and their corresponding z values. C is the contour matrix given by the contour function.

A Mathematical modeling example using fluid accumulation in a tank

Crameri returns perceptually-uniform scientific colormaps created by Fabio Crameri.

We revisit the problem from Example 11.2.2 with a jammer at except that the jammer power is now 70 dB. Clearly, the -50dB tapered beamformer is no longer capable of sufficiently suppressing

How to customize polar axes settings in a plot in MATLAB®.

By default, MATLAB's high level plotting commands create the necessary graphics objects so that the user does not have to. For robust use, create and specify graphics objects to avoid

Hslcolormap is a tool that helps you create nice looking colormaps in hue-saturation-lightness space. You can use this to create colormaps that have a progressive change in lightness.

We will find the equilibrium states for a single-domain magnet with cubic anisotropy in zero field. The magnetization has a fixed magnitude, so it can be represented by a unit vector $

Reshape_daily reshapes daily time series from 1D to 3D or from 3D to 1D. 3D time series coordinates correspond to DAYSxMONTHSxYEARS and will always be 31x12xNUMBEROFYEARS. Missing data

Without an input argument, defaultPlotColors() will return the array of 7 default plot colors. Each row respresents one color. Row 1 to row 7 correspond to color 1 to 7, respectively.

Copyright 2017, Ilias S. Konsoulas.

The fopturns function generates a flight path including turns path for given waypoints.

The argofiles returns urls of ARGO NetCDF files within specified geographic and temporal limits. This function is intended for use with the argodata function.

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

You can create a customized class by specifying that your class inherits from another class.

The sodb_inpolygon returns measured (not gridded) data for all SODB stations within a specified polygon.

Section 7.3.2 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

This function processes absolute radiometric data (irradiance) with dimension and calculates:

Add nodes by specifying two arrays, one for each coordinate direction.

This function returns Bedmap2 data and corresponding geographic or polar stereographic coordinates.

Kongradgl returns rates of grounding line retreat/advance from Konrad et al. 2018.

The data are room impulse responses measured in a living room. Sakari Tervo & Jukka Pätynen, Aalto University, 2016 Sakari.Tervo@aalto.fi and Jukka.Patynen@aalto.fi Copyleft

How to create a datetime plot in MATLAB®.

How to create a polar scatter plot in MATLAB®.

Ideally we would not need to rely on the MATLAB clear command. All of our variables would be scoped to the correct workspace. However particularly in interactive use or dealing with other

How to produce a uniform lighting across the surfaces in MATLAB®. This lighting is good for viewing faceted surfaces.

Youtube released an updated version of their Youtube Data API:

The bamberdem_data function returns Bamber et al. 2009 combined ERS-1 and ICESat Antarctic surface elevations and corresponding geographic or polar stereographic cartesian

This function formats colorbar ticks as dates strings.

The istidal function returns logical true for everything seaward of the landward limit of flexure (including open ocean and ice shelves) detected by InSAR according to MEaSURES Antarctic

Uses the "hgtable" functions to display a multi-column list

Is only a verification of the function eigenBridge2.m based on the works of [1]. For this reason, I use a slightly different function whose only purpose is to verifiy the numerical

The acceleration, velocity and displacement data of the earthquake can be downloaded from here:

Linearity in gray is important for a colormap to look reasonable when printed in grayscale ("black and white"), but note that precise linearity depends on the particular (non-unique)

Plot_basins plots Antarctic drainage basins on a ps71 map. These are the IMBIE or IMBIE Refined basins in the MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar dataset

In this script we will demonstrated how Hurst exponent can be used for VaR scaling. The P&L data can be found in the P&L.xls spreadsheet. This data should be imported first.

How to create a datetime plot (bar chart) in MATLAB®.

Patchsc plots patch objects with face colors scaled by numeric values.

Do leaders have the most children? Let's draw some circles around the leaders.

An analysis of a compound shows it to be 63.94 mass% Carbon, 7.15 mass% Hydrogen, and the rest (28.91%) is Oxygen. What is the Hill Notation for this compound?

Compute normalized probability density function from characteristic function. Part of the CFH Toolbox.

See Gleich and Constantine, Random Alpha PageRank, for details about this method. PageRank is a method to evaluate the importance of nodes in a directed graph. On the graph, we follow a random

PMPack contains all sorts of helpful routines for evaluating and computing univariate and multivariate quadrature rules.

This document explains how to use the DMC Simulink block.

This function returns Bedmap2 data interpolated to a point, line, or grid.

Tprintf provides a more intuitive interface to fprintf for writing tabular data to a text file. tprintf(filespec,format,A1,...,An) creates a tabular text file by writing the columns of

The Grammar Executing Machine principle has been demonstrated in Chapter 1. The version 0 driver gem0.m and MEX files iog0.c and iog0.h provide no-frills code that runs on the edge of

This demo illustrates a simple approach to provide taxonomy annotation of BLAST hits. It requires the taxonomy information included in the files gi_taxid_prot.dmp and nodes.dmp, which

Solving a Sudoku puzzle in MATLAB may not be a challenge, but to solve it quickly is not so easy. More than 20 Sudoku solvers have been submitted in MATLAB File Exchange. Most of them use

Basin_data loads IMBIE or IMBIE Refined basins in the MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar dataset Version 2.

Use the MATLAB® Support Package for Arduino® Hardware to control two Adafruit NeoPixel LED Strips simultaneously.

The wind spectra for a neutral and unstable atmospheric stratification are computed following the model proposed by Højstrup [1]. The model of Højstrup aims to describe the wind spectra in

Reshape from Matrix to Vector for Scatter Plot

Compute bond prices for an AJD process. Part of the CFH Toolbox.

Compute American option prices from characteristic function of asset return distribution. Part of the CFH Toolbox.

In view of the stunning success of new lines of argument in the political debate, it is high time to free also science and engineering from the fetters of a small-minded rationale. Stimulated

Cpomsec_interp interpolates Antarctic Ice Sheet surface elevation trends from CPOM. Get the data here and follow the SEC link.

The uniform-shear model is computed with the parameters used in Mann (1998) [1] and compared to the spectra from the Great belt experiment, which are displayed in Mann (1994). The three

Copyright (c) 2017, DIBRIS-University of Genoa (www.dibris.unige.it) All rights reserved. Please read the "license.txt" for license terms.

Read data from a SAS dataset

The bedhead function returns static pressure head at an ice sheet base in units of meters freshwater equivalent. This function calculates only a simple first-order approximation and does

Compute spread option prices on the difference between to assets' price levels. Part of the CFH Toolbox.

Post-glacial rebound (also known as glacial isostatic adjustment or GIA) describes the elastic relaxation of land masses that has been occurring since the weight of continental ice sheets

How we can use the JSON parser to take data directly from Trendy (such as this trend for Cody problem count) and bring them into MATLAB.

Crank angle (C.A.) reference for the calculation is from 0 to 720 deg. Top Dead center (TDC) occurs at 360 deg.

Computation of the eigenfrequencies and mode shapes of a beam with different boundary conditions Axis orientation: The beam has a main axis z, and its cross-section is symmetric to axis x and

Use INLINEDEF when you would like to create a function or class definition in a script.

There are plenty of direct and iterative methods to solve a linear algebraic system of equations. Using Cramer's rule, one can easily obtain the solution for small systems by hand. However,

Section 7.3.1 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

The test case A3 from 3rd PIV challenge [ref. 6] is treated. Mean and rms velocities are computed, velocity PDF is determined and wavenumber spectra is calculated; these results can be

Gmb_ts gives a time series of gravimetric mass balance data from TU-Dresden (Groh & Horwath 2016).

First let's import and translate some molecule...

In this example, we study the SMI adaptive beamformer and the loss associated with the number of snapshots used for training. SMI adaptive beamformers are produced with sample supports of K =

How to create two overlapping waves in 3 dimension in MATLAB®.

Arcticseaice plots daily Arctic sea ice concentration from Nimbus-7 SMMR and DMSP SSM/I-SSMIS Passive Microwave Data or Near-Real-Time DMSP SSMIS Daily Polar Gridded Sea Ice

Using the default values to make a horizontal line through the origin

The conversion constants are contained within the "define" method in the "convConstant" object. Each constant is part of a series of case statements from one large switch statement. Here is

Dan Frey

The friction velocity (u_star) is defined as:

To demonstrate the optimum beamformer, we consider a scenario in which there are three interference sources and compare it to a conventional beamformer (spatial matched filter). The array

Binind2latlon converts binned index values of a sinusoidal grid to geocoordinates.

Here I'll generate a sequence of magic squares, then compute the permanent for each. I'll also show the time required.

Let's say that the sensor array data set was very large, taking up several GB. Althought you may modfiy it and you would never need to make a copy of it. In this case a handle class implementation

The basins function outlines Antarctic drainage basins on a map. This function is provided as a plugin to the Antarctic Mapping Tools package.

The sodb_interp interpolates Southern Ocean Database gridded data to any arbitrary geolocation(s).

Treats images from the images of test case A4 of 3rd PIV challenge (Stanislas, Ref. [6]). To visualize more easily results, the four parts of the image are treated separately.

Mixed beam/truss model.

The fopmap function creates a map of a flight line from waypoints. Flight lines are placed in context of Bedmap2 gridded data (color), Bedmap2 surface (contours), and MOA2009 grounding

The modismoa function plots Moderate Resolution Imaging Spectroradiometer (MODIS) Mosaic of Antarctica (MOA) images, grounding lines and coastlines. Plotted data are high-pass 1.

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

This function sorts input matrix A and corresponding matrices using sortrows. Output matrices are sorted such that the first output is a sorted version of A, and all other outputs are sorted

The sodb function plots Southern Ocean Database data on maps or polar stereographic cartesian coordinates. Station locations are plotted as markers and gridded data are plotted as pcolor

Section 4.1 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

Possible actions are:

The isice function returns logical true for all grounded ice and ice shelves according to MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar, Version 2. This is the

Here we will show how you could import a molecule and translate it somewhere in the original simulation cell or in a new simulation cell having new dimensions.

We want to explore the effect of the number of training samples on the sidelobe level of the SMI adaptive beamformer. To this purpose, we generate an interference signal at with a power of 70 dB

We will now look at defining methods in the class definition file which are the operations that we can carry out with the class.

Equivalence of different polysym definitions:

This is a MatLab (R2016a) code which builds a Hull-White Tree with equal time steps, constant rate of reversion, and constant volatility. It is based on Hull-White paper (HW-94) "Numerical

Treatment of whitespace and character classes.

Simple example which uses the features of resizable_figure and resizeable_layout. When the figure is resized, the edit control and the list control will expand to fill the available space.

Grainsize_interp returns MODIS MOA grain sizes interpolated to any Antarctic locations(s).

Rema_data loads data from the Reference Elevation Model of Antarctica (REMA; https://www.pgc.umn.edu/data/rema).

File describes how to import and work with the basal slipperiness and englacial rate factor data from G. Hilmar Gudmundsson.

This function returns accumulation data and corresponding geographic or polar stereographic coordinates.

The limitation of 52 phrase names and the ursurpation 1/2 of them for Kleene*, and 8 of them for built-in character classes, is the last of the tasks set in Chapter 1. It would be nice to play the

Basinsps outlines Antarctic ice drainage basins identified by Zwally et al. 2012. This is a polar stereographic implementation of the basins function. Matlab's Mapping Toolbox is not

How even you can recreate something like Figure 3 of Brunt, Fricker, and Padman's 2011 Journal of Glaciology paper titled, "Analysis of ice plains of the Filchner-Ronne Ice Shelf,

The script polyfit_roots_drv.m demonstrates the function polyfit_roots that finds the roots and the constant so that the polynomial

*This function calculates the median position of the atom struct. Should you wrap the atom struct? * Tested 15/04/2017 * Please report bugs to michael.holmboe@umu.se

How to add a horizontal colorbar to a plot in MATLAB®.

Up until now the emphasis has been on choosing new capabilities expressed first as bootstraps, then building the capabilities into GEM itself. The final built-in capability of GEM added

This is a very simple entry: a plot of the scores of incoming entries versus when they first appeared.

This function uses strcmp or strcmpi to return indices of a list of strings matching an input string. If no matches are found, close matches are suggested.

This case is essentially the same as example 07: The test case A1 from 3rd PIV challenge [ref. 6] is treated. Mean and rms velocities are computed, velocity PDF is determined and wavenumber

Returns the no arbitrage drift coefficients of an AJD process. Part of the CFH Toolbox.

This demonstration uses the 'ab' example of AUTO to demonstrate the use of the Dynamical Systems Toolbox in the 07P (AUTO) mode. Input and output files are similar to the ones used in AUTO.

This demo computes two symmetric homoclinic orbits in the Lorenz equations

The antbounds_data function returns the coordinates of line data in the MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar dataset Version 2.

The bedmap2_dist calculates distance in kilometers from any location(s) to any Bedmap2 mask type. This function may be useful for finding distance to the nearest grounding line. It is quite

COLUMNS DATA TYPE FIELD DEFINITION ------------------------------------------------------------------------------------- 1 - 6 Record name "ATOM " 7 - 11 Integer Serial Atom

AtomID ResName

As an inquisitive (and sometimes silly) college student, I would, at times, think of strange problems that have the potential for interesting solutions. On one such occasion, I was in the

This function predicts displacements from solid earth tides and is a wrapper function for Dennis Milbert's solid.exe program, which I believe is a wrapper for an adapted version of Dehant's

This function places degree symbols on tick labels. Labels dynamically update after zooming.

This function creates color maps from a list of any number of colors, given by their common names. Use of this function requires the rgb function which is available on File Exchange here. Color

The cryosat2_data returns Slater's 2018 or Helm et al's 2014 Antarctic surface elevation DEM and correspondig geographic or polar stereographic cartesian coordinates.

Import a structure and center it

First import a molecule...

How to create an line plot from a parametric function in MATLAB®.

Step through and execute this script cell-by-cell to verify the Singleton Desgin Pattern implementation in MATLAB.

The bamberdem_interp function interpolates the Bamber et al. surface elevation DEM to any geo- or polar stereographic coordinates.

Section 7.1 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, and Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

Vector handling The result of these commands depends on the symbolic engine. In R2012b with Maple as the symbolic engine, y is a column vector. In R2013a and later with MuPAD, y is a row vector.

This demo uses Euler's method to locate a stationary solution of a nonlinear parabolic PDE, followed by continuation of this stationary state in a free problem parameter. The equation is

This demonstration uses the 'ab' example of AUTO to demonstrate the use of Simulink with the Dynamical Systems Toolbox in the DST mode.

Albmap_interp loads data from Le Brocq et al.'s ALBMAP datasets.

The labelshelves function simply labels ice shelves on an Antarctic polar stereographic (ps71) map. Ice shelf names are from the MEaSURES Antarctic Boundaries for IPY 2007-2009 from

Complete and incomplete Jacobi form of the elliptic integral of the second kind

The dtu10mdt_interp function loads and interpolates the DTU10MDT mean dynamic topography dataset.

The grounding line along the Siple Coast was mapped by Horgan and Anandakrishnan (2006) by examining the region of high surface slope which connects relatively flat floating ice shelf to

Describes how to create an image similar to Figure 1 of Stanton et al.'s 2013 Science paper. The paper is titled Channelized Ice Melting in the Ocean Boundary Layer Beneath Pine Island

Example 1.9 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

Due to various limitations, PIVsuite works mostly only on a single core of the computer. To improve performance when treating large sets of PIV images, it is advantageous to run several

Ïnteger weights of items

The cryosat2_interp function interpolates the Helm et al. CryoSat-2 surface elevation DEM to any geo- or polar stereographic coordinates.

Add ions randomly wherever there is space (this function is similar to solvate_atom() and insert_atom()

Original reference to the cell list algorithm: Heinz, T.N. & Hunenberger, P.H. "A fast pairlist-construction algorithm for molecular simulations under periodic boundary conditions." J

This function rounds values to multiples of a fraction.

Consider the radar interference scenario that is occuring with a single jammer at an angle with a jammer-to-noise ratio = 50dB. Again, we have = 10 element array with spacing. The center

Often in processing data, you have the problem of 4-5 files of data and you need concatenate all those files together. An elegant and easy way to handle this is with cell arrays. Other ways

How to create a horizontal bar chart in MATLAB®.

Example 12.1 from Numerically solving polynomial systems with Bertini, by Daniel J. Bates, Jonathan D. Haunstein, Andrew J. Sommese and Charles W. Wampler (SIAM 2013).

This script is supplemental material to the paper: