PLINE |
Plots line in 2D.
Synopsis:
h=pline(W,b)
h=pline(W,b,line_style)
h=pline(model)
h=pline(model,options)
Description:
h=pline(W,b) plots the line in 2D space described implicitely as
W'*x + b = 0 ,
where W, x are vectors [2x1] and b is scalar or explicitely as
y = W*x + b ,
where W, x and b are scalars.
h=pline(W,b,line_style) defines parameter line_style of plot
function (default 'k-').
h=pline(model) parameters of the line are given in structure
model with fields model.W and model.b.
h=pline(model,options) argument options controls apperance
of the plotted line; options.win [left right top bottom]
determines window to which the line is plotted and
options.line_style is described above.
Output:
h [1x1] handle of plotted line.
Example:
Plot horizontal and vertical axes with dashed line:
figure; hold on; axis([-1 1 -1 1]);
pline(inf,0,'--');
pline(0,0,'--');
Plot Fisher linear discriminat for Riply's data set:
data = load('riply_trn');
model = lfld( mlcgmm(data));
figure; ppatterns(data);
pline(model);
About: Statistical Pattern Recognition Toolbox
(C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
Czech Technical University Prague
Faculty of Electrical Engineering
Center for Machine Perception
Modifications:
29-apr-2004, VF
13-july-2003, VF
20-jan-2003, VF
8-jan-2003, VF, A new coat.