Question

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)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) Since a > 0, initial condition response will blow up as clear from the following expression for x(t).

                                                     (7) 0)= (7)

So plot has been shown with value of x(t) on dB scale.

MATLAB code is:

a = 0.001;
b = 1;
sys = ss(a,b,[],[]);
x0 = 5;
t = 0:1:1e5;
[y,t,x] = initial(sys,x0,t);
plot(t,20*log10(x));
xlabel('time(s)');
ylabel('x(t)(dB)');
grid on;

Plot of x(t) is shown below;

700.... 600... α(τ)(dB) ..... . 10 time(s)

(b) This part is little confusing. I have taken two scenarios and written code for both.

      (1) We already have x(t) from part (a). Now carry out the integral to obtain J(k) for different values of k, with x(t) already obtained. Then find the value of "k" which gives minimum J.

MATLAB code for this case is shown:

a = 0.001;
b = 1;
q = 1;
r = 1;
x0 = 5;
t = 0:0.01:10;
k = (-1:0.1:10);
sys = ss(a,b,[],[]);
    [y,t,x] = initial(sys,x0,t);

for i = 1:length(k)

        u(i,:) = -k(i)*xf;
        J(i) = sum(q*xf(i,:).*xf(i,:)+r*u(i,:).*u(i,:))*(t(2)-t(1));
end

Plot of J(k) vs k, is shown below:

J(k) in dB : 3:0 .. V: 48.05 ... .. 2

Clearly minimum of J(k) occurs at k = 0.

(2) Change the system state space equation to

                                                      i(t) = (a - kb)x(t)

Solve this system with given initial condition and get x(t) for each k. Then do the integral for each k to find J(k).

MATLAB code is shown:

a = 0.001;
b = 1;
q = 1;
r = 1;
x0 = 5;
t = 0:0.01:10;
k = (-1:0.1:10);
a1 = a - k;
for i = 1:length(k)
    sys = ss(a1(i),b,[],[]);
    [y,t,x] = initial(sys,x0,t);
    xf(i,:) =x;
    u(i,:) = -k(i)*xf(i,:);
    J(i) = sum(q*xf(i,:).*xf(i,:)+r*u(i,:).*u(i,:))*(t(2)-t(1));
end
index = find(abs(J)==min(abs(J)));
kmin = k(index)
Jmin = J(index)


Plot of J(k) is shown:

J(k) in dB .......... 60........ V: 28.05 o 2

Add a comment
Know the answer?
Add Answer to:
consider the system X(t) = ax(1) + bu(t) with a = 0.001,b= 1,x(0) = 5. (a)...
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
  • x(0) = 0 Consider the system defined by * = AX + Bu Where 1 A...

    x(0) = 0 Consider the system defined by * = AX + Bu Where 1 A = (-6-3) BEG 1 and u=C)=6:10 [2.1(t) (5.1(t). Obtain the response x(t) analytically.

  • 6. Consider a state-space system x = Ax+ Bu, y = Cx for which the control...

    6. Consider a state-space system x = Ax+ Bu, y = Cx for which the control input is defined as u- -Kx + r, with r(t) a reference input. This results in a closed-loop system x (A-BK)x(t)+ Br(t) = with matrices 2 -2 K=[k1 K2 For this type of controller, ki, k2 ER do not need to be restricted to positive numbers - any real number is fine (a) What is the characteristic equation of the closed-loop system, in terms...

  • Problem 5. Given the system in state equation form, x=Ax + Bu where (a) A=10-3 01, B=10 0 0-2 (b)...

    Problem 5. Given the system in state equation form, x=Ax + Bu where (a) A=10-3 01, B=10 0 0-2 (b) A=10-2 01,B=11 Can the system be stabilized by state feedback u-Kx, where K [k, k2 k3l? Problem 5. Given the system in state equation form, x=Ax + Bu where (a) A=10-3 01, B=10 0 0-2 (b) A=10-2 01,B=11 Can the system be stabilized by state feedback u-Kx, where K [k, k2 k3l?

  • Consider a (continuous-time) linear system x=Ax + Bu. We introduce a time discretization tk-kAT, ...

    Consider a (continuous-time) linear system x=Ax + Bu. We introduce a time discretization tk-kAT, where ΔT = assume that the input u(t) is piecewise constant on the equidistant intervals tk, tk+1), , and N > 0, and N 1 a(t) = uk for t E [tk, tk+1). (a) Verify that the specific choice of input signals leads to a discretization of the continuous-time system x = Ax + Bu in terms of a discrete-time system with states x,-2(tr) and inputs...

  • (30) 3. Determine the feedback gain k>1 that minimizes the performance index J = " [x²(t)+...

    (30) 3. Determine the feedback gain k>1 that minimizes the performance index J = " [x²(t)+ u?(t)] dt %3D for x(0)= v2 x(t) = x(t) + u(t), where u(t) = -k x(t). Show all steps. What is the value of Jmin ?

  • For the following system: -13 1 0 x(t)30 01x(t)u(t) y(t)=[1 이 x(t) 0 a. Determine if the system ...

    For the following system: -13 1 0 x(t)30 01x(t)u(t) y(t)=[1 이 x(t) 0 a. Determine if the system is completely controllable. b. If the system is completely controllable, design a state feedback regulator of the form u(t)-Kx(t) to meet the following performance criteria: %10 1.5% · T, = 0.667 sec For the following system: -13 1 0 x(t)30 01x(t)u(t) y(t)=[1 이 x(t) 0 a. Determine if the system is completely controllable. b. If the system is completely controllable, design a...

  • 1. Given the following physical system described by the following differential equation. a. Solve...

    Relate to MATLAB and please do it by hand. Thanks 1. Given the following physical system described by the following differential equation. a. Solve for y(t), assume all initial conditions are zero. Use the Laplace transform approach. b. What MatLab command would you use to find the residues c. What is a residue? d. What command would you use to simulate and graph the step response? e. What is the purpose of the partial fractions operation? +12+3 32(0 dt dt...

  • Frequency Response of a mass-spring-dashpot system Consider a mass-spring-dashpot system driven b...

    Use matlab for the following: Frequency Response of a mass-spring-dashpot system Consider a mass-spring-dashpot system driven by a unit amplitude harmonic input mdx/dt+ cdx/dt + kx- Sin (wt) Use Matlab to simulate time response for ten well-chosen values of w for 3 different values of dimensionless damping factor : 0, between 0 and 1, larger than 1. Record and plot the steady state values of amplitude. Frequency Response of a mass-spring-dashpot system Consider a mass-spring-dashpot system driven by a unit...

  • Consider the following ODE where m= 10 kg, b = 2 N-s/m and u(t) = 0....

    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. Use MATLAB control system toolbox commands to simulate the dynamic response of the system for 0 st 35. m2 + bż = u(t) PLOT 2(t) and ż(t) on two sets of axes using the subplot command. REPORT: max 2 = max ż

  • just 1,2,4 Problem 1 Consider the linear system of equations Ax = b, where x €...

    just 1,2,4 Problem 1 Consider the linear system of equations Ax = b, where x € R4X1, and A= 120 b = and h= 0.1. [2+d -1 0 0 1 1 -1 2+d -1 0 h2 0 -1 2 + 1 Lo 0 -1 2+d] 1. Is the above matrix diagonally dominant? Why 2. Use hand calculations to solve the linear system Ax = b with d=1 with the following methods: (a) Gaussian elimination. (b) LU decomposition. Use MATLAB (L,...

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