Single Perceptron Learning
Version 1.0.0.0 (5.39 KB) by
Suraj Kamya
Without using inbuilt functions from NN Tool. Perceptron learning is implemented.
Perceptron Learning Rule is:
% Wnew = Wold + e*p
% e = t - a
% b = bold + e
% Update the weight & bias until it prodeuces correct target for inputs.
% For example:
% And Gate:
% P=[0 0 1 1; 0 1 0 1]; t=[0 0 0 1]; w=[0 0]; b=0; ep=20;
% [w b]=perceplearn(P,t,w,b,ep);
Cite As
Suraj Kamya (2026). Single Perceptron Learning (https://uk.mathworks.com/matlabcentral/fileexchange/44470-single-perceptron-learning), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Deep Learning Toolbox > Train Deep Neural Networks > Function Approximation, Clustering, and Control > Function Approximation and Clustering > Define Shallow Neural Network Architectures >
Find more on Define Shallow Neural Network Architectures in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
