design & train Neural Network for AND, OR gate using perceptron.

download design & train Neural Network for AND, OR gate using perceptron.

of 5

description

design & train Neural Network for AND, OR gate using perceptron.

Transcript of design & train Neural Network for AND, OR gate using perceptron.

TITLE: To design & train Neural Network for AND, OR gate using perceptron.

Neural network in Matlab can be developed in 2 ways:1. Using GUI2. Implementing as .m file

Creating OR gate using Matlab GUI:

1. To begin using the NN GUI>>nntool

2. Click on New to create your neural network.

3. Click on Data option in top to enter name and values of inputs and targets as shown:

4. Click on Network to name it, also select the network type as Perceptron, also select input data & target data names as created in last step as shown:

5. Now click on create to create network & then click on View to view it.

6. Now click on train to train the network to get the desired output.

Creating AND gate using Matlab GUI:

1. To begin using the NN GUI>>nntool

2. Click on New to create your neural network.

3. Click on Data option in top to enter name and values of inputs and targets as shown:

4. Click on Network to name it, also select the network type as Perceptron, also select input data & target data names as created in last step as shown:

5. Now click on create to create network & then click on View to view it.

6. Now click on train to train the network by entering name of network, inputs and targets.

7. Click on Train Network & output obtained is as:

2