Products & Services Solutions Academia Support User Community Company


plotpc

Purpose

Plot classification line on perceptron vector plot

Syntax

Description

plotpc(W,B) takes these inputs,

W
S x R weight matrix (R must be 3 or less)
B
S x 1 bias vector

and returns a handle to a plotted classification line.

plotpc(W,B,H) takes an additional input,

H
Handle to last plotted line

and deletes the last line before plotting the new one.

This function does not change the current axis and is intended to be called after plotpv.

Examples

The code below defines and plots the inputs and targets for a perceptron:

The following code creates a perceptron with inputs ranging over the values in P, assigns values to its weights and biases, and plots the resulting classification line.

See Also

plotpv


 Provide feedback about this page 

Previous page plotfit plotperform Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS