| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Plot classification line on perceptron vector plot
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.
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 |
![]() | plotfit | plotperform | ![]() |

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 |