Design & Train Neural Network For AND, OR Gate Using Perceptron.
Design & Train Neural Network For AND, OR Gate Using Perceptron.
Neural network in Matlab can be developed in 2 ways: 1. Using GUI 2. 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.
2
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.