Question

Consider the following ODE where m= 10 kg, b = 2 N-s/m and u(t) = 0. Assume initial conditions of z(0) = 15 and ż(0) = 25. Us
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given system, m 2 + b Ź s ult) where ms 10 kg. b 2 N-5/m И. 0 => 1 10 2 + 2 2 = 0 Writing in state-space form, x = 2 states B

MATLAB CODE

A=[0 1;0 -0.2];

B=[0;1];

C=[1 0];

D=[0];

sys=ss(A,B,C,D);

x0=[15 25];

t=linspace(0,35,360);

[y,t,x]=initial(sys,x0,t);

figure()

subplot(2,1,1)

plot(t,x(:,1))

grid on

xlabel('time in seconds')

ylabel('amplitude of z')

title('z Vs time')

subplot(2,1,2)

plot(t,x(:,2))

grid on

xlabel('time in seconds')

ylabel('amplitude of z_dot')

title('z dot Vs time')

display(max(x(:,1)),'max z')

display(max(x(:,2)),'max z_dot')

MATLAB OUTPUT

max z =

  139.8860


max z_dot =

    25

z Vs time 150 100 amplitude of z 50 0 0 5 10 25 30 35 15 20 time in seconds z dot Vs time 30 20 amplitude of zot 10 0 0 5 10

Add a comment
Know the answer?
Add Answer to:
Consider the following ODE where m= 10 kg, b = 2 N-s/m and u(t) = 0....
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
  • Mi k2 b yi m2 Figure 5-45 Mechanical system. Assuming that mi 10 kg, m2 5 kg, b 10 N-s/m, k 40 N/...

    mi k2 b yi m2 Figure 5-45 Mechanical system. Assuming that mi 10 kg, m2 5 kg, b 10 N-s/m, k 40 N/m, and k 20 N/m and that input force u is a constant force of 5 N, obtain the response of the sys- tem. Plot the response curves n(t) versus r and y2(t) versus t with MATLAB Problem B-5-23 Consider the system shown in Figure 5-45. The system is at rest for t < 0. The dis placements...

  • MATLAB - Simulink Solution U 005) Esin - M = 2kg; m= 0.1 kg; l= 0.5m...

    MATLAB - Simulink Solution U 005) Esin - M = 2kg; m= 0.1 kg; l= 0.5m I cos e M 8:Pendulum Angle 8:Angular velocity of pendulum x:Position of the car *:Velocity of the car The linear model of the system is introduced by following equations 0 = 20.6010 - u x = 0.5u - 0.49050 Suppose states of system are x = [o o 0 1 001 20.601 0 0 0 A ;C = [0 0 1 0] 0 0...

  • 1. Given the impulse response, h[n duration 50 samples. (-0.9)"u[n, find the step response for a step input of h-(0...

    1. Given the impulse response, h[n duration 50 samples. (-0.9)"u[n, find the step response for a step input of h-(0.9)-10:491 -ones (1,50) s- conv(u,h) 2. Plot h and u using stem function for 50 samples only stem(10:491, s(1:50) 1. Given a system described by the following difference equation: yIn] 1143yn 1 0.4128y[n -2 0.0675x[n0.1349xn 0.675x[n-2] Determine the output y in response to zero input and the initial conditionsy-11 and yl-2] 2 for 50 samples using the following commands: a -,-1.143,...

  • a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): 2x + 2x + x=u, x(0) = 0, *(0) = 0 where u is the Unit Step Function (of magnitude 1). a. Use MATLAB to obtain an analytical solution x(t) for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for x(t). Also obtain a plot of .x(t) (for a simulation of 14 seconds)...

  • slove in Matlab AP2. A system is modeled by the following differential equation in which X(t)...

    slove in Matlab AP2. A system is modeled by the following differential equation in which X(t) is the output and (() is the input: *+ 2x(t) + 5x(t) = 3u(t), x(0) = 0, X(t) = 2 a. Create a state-space representation of the system. b. Plot the following on the same figure for 0 st s 10 sec : i. the initial condition response (use the initial function) il the unit step response (use the step function) iii. the total...

  • Consider the following system: -1-2-21 гг 1 0 1 L Where u is the system input and y is the measur...

    control system with observer Consider the following system: -1-2-21 гг 1 0 1 L Where u is the system input and y is the measured output. 1. Find the transfer function of the system. 2. Design a state feedback controller with a full-state observer such that the step response of the closed loop system is second order dominant with an overshoot Mp settling time ts s 5 sec. Represent the observer-based control system in a compact state space form. 10%...

  • 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 co...

    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...

  • Consider the differential equation y(t) + 69(r) + 5y( Q3. t)u(t), where y(0) (0)0 and iu(t) is a ...

    Matlab code for the following problems. Consider the differential equation y(t) + 69(r) + 5y( Q3. t)u(t), where y(0) (0)0 and iu(t) is a unit step. Deter- mine the solution y(t) analytically and verify by co-plotting the analytic solution and the step response obtained with the step function. Consider the mechanical system depicted in Figure 4. The input is given by f(t), and the output is y(t). Determine the transfer function from f(t) to y(t) and, using an m-file, plot...

  • consider the system X(t) = ax(1) + bu(t) with a = 0.001,b= 1,x(0) = 5. (a)...

    consider the system X(t) = ax(1) + bu(t) with a = 0.001,b= 1,x(0) = 5. (a) Simulate this system using the Matlab command initial (b) Now use u(t) = -kx(t) where k is found as the optimal gain by minimizing the performance index J= ax (1) + ru (1) dt Use q=1, r=1 to simulate this system.

  • Consider the system. (1) M →1.0) M +0.1 kg, B=0.2 N-s/m Mv(1) + By(t) = 1,01)...

    Consider the system. (1) M →1.0) M +0.1 kg, B=0.2 N-s/m Mv(1) + By(t) = 1,01) Consider a system described by the following differential equation: 0.1"WX2 +0.2v(t) = .0), where y(t) and 4.0) are the output and the input of the system. dt (la) Convert the above differential equation into the form of the typical first-order dynamic system: + ) = ), and explain the physical meaning of the two parameters 7 and v.. (5%) dv(1) (1b) According to the...

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
ADVERTISEMENT