Given transfer function,
and sampling time, Ts=0.1
MATLAB code:
Num=[1 3]; Den=[1 2 1];
[A B C D]=tf2ss(Num,Den)
Result:
A=[-2 -1;1 0]
B=[1;0]
C=[1 3]
D=0
The state space in continuous form is:
1. Using Forward Euler in the state space form:
According to Forward Euler approximation, the derivative term can be rewritten as:
.
Since the sampling is done in the integer multiples of T, with T
being the smallest value,
a small change in x(t) can be written as
Upon substituting the above expression, the continuous can system can be rewritten as:
Upon solving we get,
substituting the values of A,B and C we get the discretized state space model as:
Applying z-transform on both sides we get,
2. Directly using Forward Euler on G(s):
Substituting s=(z-1)/T in the given transfer function, we get,
The state space form is given by:
Ad=[1.8 -0.81;1 0]; Bd=[1;0]; Cd=[0.1 -0.07]
3. The two discrete transfer functions are not same. However, their characteristic equations are same but differ in the location of zero. Similarly their respective state space matrices also differ.
3 +3 Consider the following TF G(s) - 13 l. Realize a state space(s)formulation using MATLAB. The...
Using MATLAB
4) Consider the stable second-order continuous transfer function (in s domain): H = S +1 S2 + 3s + 2 Using the command Hd = c2d (H, Ts) with Ts = 0.1, convert H to the z domain. On the same Figure, plot the continuous impulse response of the system against the discrete one. Considering your work in problem 4, 5) Vary Ts (Ts = 0.7, 0.5, 0.3, 0.1) and observe the plot of the continuous impulse response...
Need Matlab for part d)
3. The following questions relate the figure below of 2 couple spring-mass systems T2 fint) (a) Derive the 2 differential equations (one for each mass) of this system (b) Now derive the Transfer-Function from fin → Xi (c) Now derive the state-space representation (A,B,C,D) of this system. Hint: There should be 4 states (position and velocity of each mass). The output of this system is still y (which will probably be the first state in...
Problems: Consider the following system, G11(s) G12(8) G21 (s) G22(s) S+I S+2 G(s) 1S+2 s+1 and answer the following questions 1. Find the poles and zeros for each SISO transfer function G1 (s), G12(s), G21 (s) and G22(s) 2. For each SISO transfer function, eg, Yu (s) = G11(s)U1 (s), calculate a state space realization. 3. Explain how to obtain G(s) by connecting the four SISO transfer functions from 2 and calculate a state space realization for G(s) based on...
Using the Following Functions G(s) = 1 and H(s) = 1 1. Enter the G(s) and H(s) functions. (Take advantage of using either symbolic tool or entering vector format with Commands like tf to generate the transfer function.) Your goal is to find the following a) X(5) - O Y ) Cascade system b) XI(6) — 6) → Y(s) Parallel System X2(8) — 20) R(S) O G() Yes H(s) Feedback System (Hint: Use commands like cascade(tf), parallel(tf) and feedback(tt)) 2....
A classic second order system has transfer function
the undamped natural frequency to be 10 rad/s throughout this
exercise. Note, for the following MATLAB simulations you need to
use format long defined at the top of the program to get full
precision.
a) Use MATLAB to plot the step response for three damping
factors of ζ =0.5,1 and 1.5 respectively. step(g,tfinal)_ where
tfinal is the max time you need to make it 2 secs and g is the
b) Takeζ...
Use matlab to obtain a state-space representation of C(s) G(s)= E(s) 25° +4.88² +9.65 +16 S+5 Using the state-space model and matlab command ‘Isim()”.obtain and plot the response c(t) for a step input e(t) = 2 sin(0.01t).
The state space model of an interconnected three tank water storage system is given by the following equation: -3 1 0 1rh dt os lo 0 3] 10 1-3 The heights of water in the tanks are, respectively, h,h2,h3. Each tank has an independent input flow; the volume flow rates of input water into the three tanks are, respectively, qǐ1,W2,4a. Each tank also has a water discharge outlet and the volume flow rates of water coming out of the tanks...
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...
Assignment: Let us consider the same network of HW3, Figure 1, with the parameter reported in Table 1. 10 V 1 2 ΙΩ R2 1 H Figure l Table l 1. Which is the order of the system How many input it has? Comment your answer. 2. Obtain (manually) a state space representation of the circuit in the form x(t) - Ax(t) + Bu(t) 3. Assuming that you variable of interest is the current is resistor R1, write an output...
The state space model of an interconnected three tank water storage system is given by the following equation -3 1 o 1[hi] dt The heights of water in the tanks are, respectively, hi, h2, hz. Each tank has an independent input flow; the volume flow rates of input water into the three tanks are, respectively, qii,qi2, Oi3. Each tank also has a water discharge outlet and the volume flow rates of water coming out of the tanks are, respectively, qo1,...