How to convert state space to transfer function
373 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ali Almakhmari
el 26 de Jul. de 2023
Comentada: Ali Almakhmari
el 1 de Ag. de 2023
I have the following state space:
Where x is 12 by 1, A is 12 by 12, B is 12 by 3, w is 12 by 1, y is 6 by 1, H is 6 by 12, and v is 6 by 1. How can I convert this to transfer functions in MATLAB? I wanted to use the ss2tf command but I realized that it takes the state space in the format of:
Which is not what I have.
0 comentarios
Respuesta aceptada
Sam Chak
el 26 de Jul. de 2023
I think you can rearrange the matrices manually because
can be expressed as
.
So, if , then in compact form, it looks like
.
Now you should be able to use ss2tf(A, B, C, D).
4 comentarios
Sam Chak
el 26 de Jul. de 2023
According to the theoretical mathematics presented, and based on the info you provided, It should work. Have you tried and show us the result? Here is an example:
A = [0 1; % state matrix
-1 -2];
G1 = [0; % input matrix of u
1]
G2 = eye(2) % input matrix of w
G3 = zeros(2, 3) % input matrix of v
B = [G1 G2 G3]; % augmented input matrix B
C = [1 0]; % state matrix
D = [0, 0 0, 1 1 1]; % augmented direct feedforward matrix D
% State-Space Model
sys = ss(A, B, C, D)
% Transfer functions
P = tf(sys) % predicted number of TFs: 1*6 = 6 Tfs
Más respuestas (0)
Ver también
Categorías
Más información sobre Dynamic System Models en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!