SignalProcessing - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Signal Processing : Visualization : SignalProcessing/SignalPlot

SignalProcessing

 SignalPlot
 plot a signal

 Calling Sequence SignalPlot(f)

Parameters

 f - string, rtable, or list; signals to be plotted

Options

 • channel, column : posint, or list(posint) : channel or rtable column, or list of these
 • compactplot : boolean : indicates if multiple plots should be displayed in a compact form
 • reduceplot : boolean or posint : indicates that plot resolution is to be reduced
 • samplerate : realcons : the sample rate

Description

 • The SignalPlot command plots one or more signals. The input f can be the name of a file containing an audio signal, an rtable, or a list. See AudioTools:-Format for information about the kinds of files accepted.
 • If f is an $m$ by $n$ Matrix (or 2-dimensional Array), then it is assumed to contain $n$ signals of length $m$. In this case, all signals are plotted and displayed in an array plot. Similarly, if f is an audio signal with multiple channels, then plots for all channels are produced.  If you do not wish to plot all signals, the channel and column options allow you to plot a subset.
 • If f is a list, then every element of the list must be a single-channel audio signal or a 1-dimensional Array.
 • The compactplot option allows multiple plots to be displayed more compactly. When this option is set to true, it is assumed the x-axis labels for all plots are identical and thus they are displayed for the bottommost plot only.
 • If the signal is particularly large and the reduceplot option is set to true, then the plot resolution is automatically reduced for efficient rendering. If reduceplot is a positive integer, then the plot is reduced by that factor. The default setting for this option is true.
 • The samplerate option is used to specify a sample rate. Note that audio signals generated by the AudioTools package have the sample rate saved in their attributes.
 • Additional plotting options as described on the plot/option help page may be included.

Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$
 > $\mathrm{audiofile}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{datadir}\right),"/audio/stereo.wav"\right):$
 > $\mathrm{SignalPlot}\left(\mathrm{audiofile},\mathrm{compactplot}\right)$

 > 

Compatibility

 • The SignalProcessing[SignalPlot] command was introduced in Maple 18.