File Exchange

image thumbnail

Single Perceptron Learning

version (5.39 KB) by Suraj Kamya
Without using inbuilt functions from NN Tool. Perceptron learning is implemented.


Updated 25 Nov 2013

View License

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 (2021). Single Perceptron Learning (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Fienda Siddi

Dear Mr. Suraj,
I want to ask. Why the chk must be 5 times? Thank you

Aditya Anekal

When I run it I get a memory error saying infinite recursion.


Rowida Tarek

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!