Question

Please use Matlab to solve problem, thank you 2. Assume AND gate, use a perceptron with two input and one output to solve the

0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc
clear all
close all
X1= input(' enter the value of X1:')
X2= input(' enter the value of X2:')
if X1==0 && X2==0
    disp (' The Value of Output (Y) is Zero (0)');
elseif X1==0 && X2==1
        disp (' The Value of Output (Y) is Zero (0)');
elseif X1==1 && X2==0
     disp (' The Value of Output (Y) is Zero (0)');
else X1==1 && X2==1
    disp (' The Value of Output (Y) is One (1)');
end

Add a comment
Know the answer?
Add Answer to:
Please use Matlab to solve problem, thank you 2. Assume AND gate, use a perceptron with two input and one output to sol...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT