How to define AND gate using perceptron

Hi,
This is my first time using neural networks and I have a question:
I must use adaptive training for a AND gate with 2 inputs.
Is it corect how i define it?
net = newp([0 1;0 +1],1);

Answers (0)

Asked:

on 23 Oct 2020

Edited:

on 23 Oct 2020

Community Treasure Hunt

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

Start Hunting!