Drawing multiple axes in MATLAB

In a time series project, we faced the problem that we needed more than two axes. The function plotyy or the new function yyaxis was not sufficient. I solved that with a simple script that displays any number of axes.

First, we generate a synthetic data from sinusoidal oscillations with different wavelengths and amplitudes.

About me

I am a geoscientist, apl. professor of paleoclimate dynamics at the University of Potsdam. I have been using MATLAB since late 1992, especially for the analysis of paleoclimatic series. Please visit my university webpage http://martinhtrauth.de