Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

plotpv

Plot perceptron input/target vectors

Syntax

plotpv(P,T)
plotpv(P,T,V)

Description

plotpv(P,T) takes these inputs,

P

R-by-Q matrix of input vectors (R must be 3 or less)

T

S-by-Q matrix of binary target vectors (S must be 3 or less)

and plots column vectors in P with markers based on T.

plotpv(P,T,V) takes an additional input,

V

Graph limits = [x_min x_max y_min y_max]

and plots the column vectors with limits set by V.

Examples

Plot Inputs and Targets for Perceptron

This example shows how to define and plot the inputs and targets for a perceptron.

p = [0 0 1 1; 0 1 0 1];
t = [0 0 0 1];
plotpv(p,t)

See Also

Introduced before R2006a

Was this topic helpful?