In matlab I have done it using lsim as well as ode45.
lsim code:
A = [0 1;5 4];
B = [0;1];
C = [1 0;0 1];
D = 0;
sys = ss(A,B,C,D)
t = 0:0.01:1;
ic = [1;4];
u = cosh(2*t);
figure(1)
lsim(sys,u,t,ic)
out(1) shows displacement responce and out(2) shows velocity responce.
by ode 45:
function:
function dydx = odefun(t,y)
dydx = [y(2);5*y(1)+4*y(2)+cosh(2*t)];
end
code:
[t,y] = ode45(@(t,y) odefun(t,y),t,ic)
figure(2)
plot(t,y(:,1),'displacement response')
figure(3)
plot(t,y(:,2),'velocity response')
after saving the function, run the code in matlab.
upvote my answer.
Analyze the response of the system, using matlab X"-4x'-5x = cosh (at); *(0) = 1, *'(0)=4
4- Find unit impulse response for: y(t) + 4у(t) + 3y(t)-x(t) + 5x(t) 5- Find the total response for: ý(t) 13(t) 22y(t)-(t) +5x(t) x(t) e-Stu(t) With the initial condition y(0) 2 and y(0)-3 Identify the natural and forced response of the system. 6- Find the total response for: y(t) +2y(t) 17y(t) 4x(t) 8x(t) x(t) = e-Hu(t)
For the system described by Difference equation model vin] 5x[n]- 4x[n-1]+3x[n-2]-2x[n -3] + x[n -4] Find the system output to input x[n]-2r[n]- 4r[n-2]+2r[n -4] O vin]= x[n]=[0 4 2 0] 2 8-5 4 o vin]=[0 5 6 10 12 -10 O 00 10 8 6 4 21 o vin]=[0 10 12 0 0002 For the system described by Difference equation model vin] 5x[n]- 4x[n-1]+3x[n-2]-2x[n -3] + x[n -4] Find the system output to input x[n]-2r[n]- 4r[n-2]+2r[n -4] O vin]= x[n]=[0...
17. Solve the system using the addition method. -5x - 9y = 28 - 4x + 5y = -2 O A.(-2,-2) O B. (7,-4) O C.(7,6) O D.(-11,3)
Please provide MATLAB code and plot, about system response. Will thumbs up. Thanks. Question 1: MATLAB contains a built-in function called conv which performs the convolution of two vectors: >> help conv conv Convolution and polynomial multiplication. C - conv(A, B) convolves vectors A and B. The resulting vector is length MAX ([LENGTH (A)+LENGTH (B)-1, LENGTH(A),LENGTH (B) 1) If A and B are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials. Compute the system response...
2x y5z 2 5x y 4x y 2z= - Use Cramer's rule to solve the system of equations to the right. If D 0, use another method to complete the solution. Z=-4 L 8 Write the fractions using Cramer's Rule in the form of determinants. det det det det det y= Z= X= det 2x y5z 2 5x y 4x y 2z= - Use Cramer's rule to solve the system of equations to the right. If D 0, use another...
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...
Problem 4. (1 point) Find the solution to the linear system of differential equations 5x -8y 4x - 7y satisfying the initial conditions x(0) = 6 and y(0) = 4. x(1)
4. Divide x4 - 5x + 5x2 + 4x - 4 by x - 2 and express the result in quotient form. (T/C-3 Marks)
find the quotient and reminder using synthetic division 2x^4+5x^3+4x^2+7x+9/x+0.5
Solve IVP 23·-=-5x-y dt dy = 4x-y dt x(1) = 0, y(1) = 1