MATLAB Code:
close all
clear
clc
num = [1 1]; % 1*x[k] + 1*x[k-1]
den = [1 1.5 0.5]; % 1*y[k] + 1.5*y[k-1] + 0.5*y[k-2]
k = 0:1:20;
x = 0.8.^k; % x[k] and since k >= 0 , u[k] = 1
x_conds = [0 0]; % [x[-2] x[-1]]
y_conds = [0 0]; % [y[-2] y[-1]]
initconds = filtic(num, den, y_conds, x_conds); % initial
conditions
y = filter(num, den, x, initconds);
plot(k,y,'-o'), title('Solution'), xlabel('k'), ylabel('y[k]')
Plot:
Solve using MAT-LAB codes: A. Solve the following difference equations using the sequential method: ylk] +1.5y[k-1]+0.5y[k-2]...
Practical 2: • A. Solve the following difference equations using the sequential method: y[k] – y[k – 1] = x[X] + x[k – 1] where x[k] = 0.8ku[k] and y-1) = 0. B. Plot the results for the range o sk s 20. • A. Solve the following difference equations using the z-transform: y[k] + 2.5y[k – 1] +y[k – 2] = x[k] + x[k – 1] where x[k] = 0.8ku[k]. B. Plot the results for the range o sk...
4. (20 points) Use z-transform to solve the difference equation y(k) -1.5y(k-1) + 0.56y(k-2) = x(k) for k> 0 with initial conditions y(-1) = 3, y(-2)=-4, and x(k)= kļu(k).
answer a,b,c,d all of them one question 1 / 2 Question #2. Design of a Sequential Circuit: A SEQUENCE DETECTOR that detects the sequence 11 must be designed whose present output z(k) is set to one when the past input (k-1) is one and the present input u(k) is also one, where for the other three possible combinations of the input pair u(k-1), uk) the present outputz(k) is set to zero. The state diagram for a sequential circuit that detects...
4. Solve the following system of linear equations using the inverse matrix method. 1 y = 1 2 , 3 2 -r- 1 5 4 a) x+y +z= 6 x-y-3z=-8 x+y- 2z=-6 b) Solve the following system of linear equations using Cramer's Rule. 5. 2 1 -X- 3 2 1 3 X+-y-1 5 4 y = 1 a) x+y+z= 6 x-y-3z=-8 x+y- 2z = -6 b) 4. Solve the following system of linear equations using the inverse matrix method. 1...
please solve both 1&2 Solve the following differential equations using the Laplace transform method 1. x" + 4x = t, x(0) = 0, x'(0) = 1. 2. x" + 2x' + x = t?, x(0) = 0, x'(0) = 1
1. Find general solutions to the following differential systems of equations using dsolve: a. x' = y + t, y' = 2 -x+t b. x'=s-X, y' = -y - 3x, C. X" = x - x - y, y = -x- y - y - s', s" = -95 d. Solve the equations in c. above with the initial conditions x(0) = 1, x'(0) = 0, y(0) = -1, y'(0) = 0, $(0) = 1, s'(0) = 0, and plot...
I need the matlab codes for following question (1) (a). Solve the following second-order differential equations by a pair of first-order equations, xyʹʹ − yʹ − 8x3y3 = 0; with initial conditions y = 0.5 and yʹ = −0.5 at x = 1. (b). Solve the problem in part (a) above using MATLAB built-in functions ode23 and ode45, within the range of 1 to 4, and compare with the exact solution of y = 1/(1 + x2) [Hint: ode23 à...
20: Solve the system of equations using substitution method. 2x+5y=26 X+ y= 10 21: Solve the following equation. x-x1/2-6= 0 22: Solve the following system of equations, using elimination method. 2x+3y = 5 5x- y = 4 23: Solve the system of nonlinear equations. Any Method. Y?=x2-9 2y= x-3 24: Convert the log into exponent form. Ln (3x-5)2= 16 25: f(x)= 1/x in words explain the transformation of the following functions. a. g(x) = 1/ (x-3) +5 b. h(x)= -1/(x+2)...
• Solve this difference equation by hand using the classical method. y[n] – 1.5 y[n-1] – y[n-2] = x[n], with y[0] = 1 and y[-1] = 0, x[n] = (0.5) n u[n-1].
SOLVE USING MATLAB PLEASE THANKS! The governing differential equation for the deflection of a cantilever beam subjected to a point load at its free end (Fig. 1) is given by: 2 dx2 where E is elastic modulus, Izz is beam moment of inertia, y 1s beam deflection, P is the point load, and x is the distance along the beam measured from the free end. The boundary conditions are the deflection y(L) is zero and the slope (dy/dx) at x-L...