<< gph_pa gph gph_plq >>

CCA (Computational Convex Analysis) >> gph > gph_plot

gph_plot

Graph-matrix calculus (GPH), Subdifferential plot

Calling Sequence

gph_plot(gph1, ..., gphN)

Parameters

gph1, ..., gphN

matrices. Functions in GPH matrix form, whose subdifferentials will be plotted.

Description

Plots the subdifferential of each of the functions gph1, ..., gphN in turn, on the current graphics window. Plots the piecewise linear interpolation of the points stored in the ith matrix with colour i, and puts a mark at each of the points with style -i (via plot2d).

Examples

gph1 = [-1,  0, 0, 1, 2; ..
        -1, -1, 0, 0, 2; ..
         1,  0, 0, 0, 1];
gph2 = [ 0.5, 0.5,   1; ..
          -1,   1,   1; ..
        %inf,   5, 5.5];

// Plot the subdifferentials.
scf();
gph_plot(gph1, gph2);

// Plot the functions.
scf();
plq_plot(plq_gph(gph1), plq_gph(gph2));

See Also

Authors

Bryan Gardiner, University of British Columbia, BC, Canada

<< gph_pa gph gph_plq >>