| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Plot perceptron input/target vectors
plotpv(P,T) takes these inputs,
| P |
R x Q matrix of input vectors (R must be 3 or less) |
| T |
S x 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.
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.
| Provide feedback about this page |
![]() | plotperform | plotregression | ![]() |

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 |