MATLAB code:
x1=[0 0 1 1];
x2=[0 1 0 1];
x=[x1;x2]
t = [0 1 1 1];
net = perceptron;
net = train(net,x,t);
view(net)
y = net(x);
1. Consider the following OR gate, use Matlab with a single perceptron to solve the problem Input(XI) Input (X2)Output...
Please use Matlab to solve problem, thank you 2. Assume AND gate, use a perceptron with two input and one output to solve the problem. Input(XI) Input (X2) Output (Y) 0 0 Please use Matlab to solve problem, thank you 2. Assume AND gate, use a perceptron with two input and one output to solve the problem. Input(XI) Input (X2) Output (Y) 0 0
4. Back to diamonds. Consider the diamond generalization that has two input Xi and X2 and a single output Z. (This perceptron should have three layers and 6 edges, with 2 X inputs, 2 Y intermediates, and a single Z output.) Assume that all neurons are 'integrate and fire', and each can have a threshold of or 1. Assume that neurons have voltage 0, unless the weighted inputs exceed K, in which case they assume voltage 1. Weights on the...
Solve using MATLAB solve for xi and x2 in the following set of equations -x, + 2x2 = e-x2 solve for xi and x2 in the following set of equations -x, + 2x2 = e-x2
Consider the following setting. You are provided with n training examples: (x1, y1), (x2, y2), · · · , (xn, yn), where xi is the input example, and yi is the class label (+1 or -1). However, the training data is highly imbalanced (say 90% of the examples are negative and 10% of the examples are positive) and we care more about the accuracy of positive examples. How will you modify the perceptron algorithm to solve this learning problem? Please...
Problem 1: (7 pointsl A study was performed on wear of a bearing Y and its relationship to XI - oil viscosity and X2 load. The following data were obtained. Use the Minitab output on the next page to answer questions (a) to (e) XI 1.6 230 15.5 816 172 22.0 1058 293 91 113 125 43.0 1201 33.0 1357 40.0 1115 polnsl Find the regression equation that links the bearing Y to the oil viscosity and the load. )...
Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...
A Moore sequential circuit Y has two inputs (Xi and X2) and one output (Z). Z begins at 0. It becomes 1 when X1 = 1 and X2 = 1 either concurrently, or one after the other (in either order). Z returns to zero when X1= X2 = 0. The following input and output sequences should help you understand the requirements: X1= 01001000110110 X2 = 00110011000100 Z = (0) 00111000110110 (Hint: Y has 4 states and you may consider defining the 4 states with...
first solve by hand then using MATLAB and include the code 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method. 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method.
3. PARTIAL DIFFERENTIAL EQuATIONS (40 POINTS) Use the MATLAB function pdepe to solve the following boundary value problem a(t, 0) = 0, a(t, 1)=0, u(0, z) =-x2 + x. The output of your file should be the plot of the solution ( 0,1). 3. PARTIAL DIFFERENTIAL EQuATIONS (40 POINTS) Use the MATLAB function pdepe to solve the following boundary value problem a(t, 0) = 0, a(t, 1)=0, u(0, z) =-x2 + x. The output of your file should be the...
USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM 3. The range, r, of a cannon projectile under the influence of gravity, g-9.81 m/s, and fired with muzzle velocity vo 10 m/s is determined by the angle its barrel makes with the ground, t. From your Physics classes you will recall that the range is calculated as: r() =...