Question
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) +
The initial conditions for AP2 should read: x(O) = 0 , x(0) = 2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Script

clc;close all;clear all;

%state space representation of system

b = [3];%coeffcients of u(t)

a = [1 2 5];%Coefficients of x(t)

[A,B,C,D] = tf2ss(b,a)

%initial condition response

sys=ss(A,B,C,D);x0=[0;2];

figure;[y,t]=initial(sys,x0);plot(t,y,'--r');hold on;

%unit step response

[y,t]=step(sys,t);plot(t,y,'--g');hold on;

%total response

x=(t>=0);

lsim(sys,x,t,x0);hold off;title('Output responses');grid;

legend('Initial response','Step response','Total response')

Output responses - - Initial response -- Step response Total response Amplitude Time (seconds)

Command window:

A =

-2 -5
1 0

B =

1
0

C =

0 3

D = 0

Add a comment
Know the answer?
Add Answer to:
slove in Matlab AP2. A system is modeled by the following differential equation in which X(t)...
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
  • Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the...

    Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the mechanical system shown below bi FLR) orce CN) voltege ) 2.) Obtain the differential equation for the electrical system shown below shown below OAF 3.) Find the transfer functions corresponding to the differential equations found in questions I and 2 the 4) Let the input force applied to the block of the mechanical system be zero U)-のThe initial conditions are y(0) = 10 cm and dy(0)d-0....

  • A state space linear system is shown below. Use Matlab to solve the following problems. Requirement...

    A state space linear system is shown below. Use Matlab to solve the following problems. Requirement for project report: (1) Results; (2) Matlab code. dx1/dt=-x1(t)+u(t) dx2/dt=x1(t)-2x2(t)-x3(t)+3u(t) dx3/dt=-3x3(t) y(t)=-x1(t)+2x2(t)+x3(t)+u(t) (1) Assume the system has input u(t)=e-3t if t>t0 and zero initial state x(0)=[0;0;0]. Using the transition matrix obtained, compute the system’s output (analytical solution), and plot the output as a function of time (t within 0 to 10). (2) Using the function lsim to simulate the system’s output (analytical solution), and...

  • A system is modeled by the following LTI ODE: ä(t) +5.1640.j(t) + 106.6667x(t) = u(t) where...

    A system is modeled by the following LTI ODE: ä(t) +5.1640.j(t) + 106.6667x(t) = u(t) where u(t) is the input, and the outputs yı(t) and yz(t) are given by yı(t) = x(t) – 2:i(t), yz(t) = 5ä(t) 1. Find the system's characteristic equation 2. Find the system's damping ratio, natural frequency, and settling time 3. Find the system's homogeneous solution, x(t), if x(0) = 0 and i(0) = 1 4. Find ALL system transfer function(s) 5. Find the pole(s) (if...

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

  • Let a linear system with input x(t) and output y(t) be described by the differential equation...

    Let a linear system with input x(t) and output y(t) be described by the differential equation . (a) Compute the simplest math function form of the impulse response h(t) for this system. HINT: Remember that with zero initial conditions, the following Laplace transform pairs hold: Let the time-domain function p(t) be given by p(t) = g(3 − 0.5 t). (a) Compute the simplest piecewise math form for p(t). (b) Plot p(t) over the range 0 ≤ t ≤ 10 ....

  • Consider the differential equation: 0)+ y(t)-x(), and use the unilateral Laplace Transform to solve the following...

    Consider the differential equation: 0)+ y(t)-x(), and use the unilateral Laplace Transform to solve the following problem. a. Determine the zero-state response of this system when the input current is x(t) = e-Hu(t). b. Determine the zero-input response of the system for t > 0-, given C. Determine the output of the circuit when the input current is x(t)- e-2tu(t) and the initial condition is the same as the one specified in part (b).

  • 5. A dynamic system is modeled as (ult) u2t) to the output (vi(t) (u) un 0 80 Calculate the trans...

    please help 5. A dynamic system is modeled as (ult) u2t) to the output (vi(t) (u) un 0 80 Calculate the transfer function matrix connecting the input (uit y2(t), all initial conditions equal to O 5. A dynamic system is modeled as (ult) u2t) to the output (vi(t) (u) un 0 80 Calculate the transfer function matrix connecting the input (uit y2(t), all initial conditions equal to O

  • please help. Note: u(t) is unit-step function Consider the system with the differential equation: dyt) +...

    please help. Note: u(t) is unit-step function Consider the system with the differential equation: dyt) + 2 dy(t) + 2y(t) = dr(t) – r(e) dt2 dt where r(t) is input and y(t) is output. 1. Find the transfer function of the system. Note that transfer function is Laplace transform ratio of input and output under the assumption that all initial conditions are zero. 2. Find the impulse response of the system. 3. Find the unit step response of the system...

  • A linear, time-invariant system is modeled by the ordinary differential equation y(t) + 7y(t) = 14f(t)...

    A linear, time-invariant system is modeled by the ordinary differential equation y(t) + 7y(t) = 14f(t) Let f(t) = e^-t cos(2t)u(t) and y(0-) = -1. (a) Find the transfer function of the system and place your answer in the standard form H(s) = bms^m + bm-1s^m-1 + ... + b1s + bo / s^n + an-1s^n-1 + ... + a1s + a0 (b) Determine the output of the system as Y(s) = Yzs(s) + Yzi(s) and place both the zero...

  • c) A system can be modeled by using differential equation, di +5 di = 2v, where...

    c) A system can be modeled by using differential equation, di +5 di = 2v, where y and i are input and output for the system, i determine the transfer function for the system. [2 marks] ii. if the system input used is as shown in the Figure 2 (e), determine the time response for the system. [3 marks 0.5 Figure 2(c) d) The open loop pole-zero plot of a unity feedback control system is shown in Figure 2(d). Draw...

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