Solution:
If you found this solution useful then please upvote
Thank you
MATLAB Script
clc;
clear;
close all;
%% To obtain the state space representation
num = [1, 5];
den = [2, 4.8, 9.6, 16];
[A, B, C, D] = tf2ss(num, den);
disp('The state space representation of G(s) is:');
G = ss(A, B, C, D)
%% To obtain and plot the response c(t) for a step input e(t) = 2
t = 0:0.0001:40;
c = 2*step(G, t);
plot(t, c, 'k', 'linewidth',2);
grid;
xlabel('Time, t (sec)');
ylabel('c(t)');
title('Response of the system to an input e(t) = 2');
%% To obtain and plot the response c(t) for e(t) =
2.sin(0.01t)
T = 2*pi/0.01;
t = 0:T/1000:5*T;
e = 2*sin(0.01*t);
c = lsim(G, e, t);
figure
subplot(2,1,1)
plot(t, e, 'k', 'linewidth',2);
grid;
xlabel('Time, t (sec)');
ylabel('e(t)');
title('Input e(t) = 2.sin(0.01t)');
subplot(2,1,2)
plot(t, c, 'k', 'linewidth',2);
grid;
xlabel('Time, t (sec)');
ylabel('c(t)');
title('Response of the system to an input e(t) =
2.sin(0.01t)');
After executing we get
In the command window
The state space representation of G(s) is:
G =
A =
x1 x2 x3
x1 -2.4 -4.8 -8
x2 1 0 0
x3 0 1 0
B =
u1
x1 1
x2 0
x3 0
C =
x1 x2 x3
y1 0 0.5 2.5
D =
u1
y1 0
Continuous-time state-space model.
>>


Use matlab to obtain a state-space representation of C(s) G(s)= E(s) 25° +4.88² +9.65 +16 S+5...
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...
Question #2 ( 25 points) C(s) a) Reduce the block diagram shown in Figure 1 to a single transfer function T(s) =R) using the append and connect commands in MATLAB. pts b) Using Simulink simulate the transfer obtained in a) for a step input. c) Obtain the state-space representation of T(s). [10 [5 pts [10 pts] C(s) Ris 50 s+I 2 Figure 1 -Irt
Question #2 ( 25 points) C(s) a) Reduce the block diagram shown in Figure 1 to...
3. (25 points) For parts a & b, determine the state space representation and write the matlab code to solve the transfer function a. The circuit below where the input is v, and the output is Va 500 mF V, LX 0 b. A system is represented by the differential equation below where the output is y() and the input is z(). 440180 + 5y0) 2) d' y(t) dr d y(t) dt ontpm ria bles 2L
3. (25 points) For...
- 4. Full State Feedback and Observer Design Consider the plant s + 1 G(s)- (s + a(s +8(s +10) where a-1. a) Find a convenient state space representation of model G(s) . b) Using place design a controller for the system that puts the poles at -1 and-2 +-2 . c) Using place design an observer with poles at-10,-11 and-12 d) Simulate the states with the state estimates overlaid e)Find a state space representation of the closed loop system...
write state-space model matrices and obtain the transfer function H(s)=Y(s)U(s) (please use the matlab simulink)
you can use matlab to solve
1. Given the plant model differential equation: y" + 6y'+ 12y 12u(t) Find: a) G(s) continuous transfer function he step response of the unity feedback system c) The appropriate sampling time d) G(z) pulse transfer function e) Continuous State Space, A, B, C, D f) Discrete State Space, A, B, C, D
1. Given the plant model differential equation: y" + 6y'+ 12y 12u(t) Find: a) G(s) continuous transfer function he step response of...
Build a block diagram representation of this model in Simulink,
including integration and
summation blocks.
Apply a step input to the system and plot the output y(t) for 5
seconds. Assume initial conditions for all states are 0.
Discuss the system step response: based on visual observation,
is this system stable or unstable? Based on the plot, why?
Use the Matlab command ’ss2tf’ to get a transfer function
representation for the system.
Determine the poles of the system (consider using...
using matlab Find the state-space representation in phase-variable form for the system Y(s)/R(s)=C/[s*(s+6)*(S+15)]
Please solve these using matlab
Problem 1 Given the transfer functions e S +5 (a) C(s) 20 S + 20 (b) Use the step function to determine the time constant and rise time for each system. Note: estimate these values from the plot and do not use the stepinfo function. Problem 2 Given the transfer function 100 G(S) = 22 +45 + 25 a. Use the plot resulting from the step function in MATLAB to determine the percent overshoot, settling...
Obtain the response of the closed loop system using MATLAB: C(s)/R(s) = 5 / (s^2 + s + 5) when the input is given by r(t) = 1 + t^2