Name

AddChannelPlot — Add a subplot to a graph generated by MultiChannelPlot.

Calling Sequence

a = AddChannelPlot(signal,label,fig)

Parameters

signal

A real vector of length or a 2D real array with n rows: the signal values. If it is an array all the columns will be plotted in a single subplot with different colors.

label

A character string: the y axes label of the associated subplot.

fig

A handle on a figure generated by the MultiChannelPlot function. The default value is gcf().

a

an axes handle. The handle of the axes associated to the newly created subplot.

Description

This function allows to add a subplot to a MultiChannelPlot graph.

Examples

        t=linspace(0,500,5000)';
        opt=struct();opt.title="MultiChannelPlot";
        Ax=MultiChannelPlot(t,sin(t),"sin(t)",[sin(2*t) sin(3*t)],"y",sin(t)^3,"sin(t)^3",opt);
        ax=AddChannelPlot(sin(0.1*t),"sin(5*t)");
    

See Also

MultiChannelPlot

Authors

Serge Steer, INRIA