0

I would like to plot in matlab the transfer function which comes from the state-space model:

G * x + C * x’= B * ip(t)

up(t) = LT  * x.

In above formula G,C have been read from a file and their size is 1882*1882, ip(t) = [i1 i2 i3 i3 i5]' (input), up(t) = [u1 u2 u3 u4 u5]' (output) due to a 5-port system and x = [V1 V2 .... V1161 I1 I2 .. I721] (Number of nodes: 1161,number of inductive branches: 721).

According to theory B must be an orthogonal(in our case 1882*5) source connectivity matrix mapping uin(t) to the MNA vector x. My problem is that i don't know how to generate the matrix B with code in matlab. How could i know which positions of the matrix have 1 and how to implement this with code?

Thank you very much in advance for your help and guidance.

Erfan
  • 1,897
  • 13
  • 23
  • Does anyone know how could I implement the above suggestion? – Evi Panayiotara Sep 24 '16 at 10:35
  • I don't think this constitutes as a transfer function. What is G, C, x an ip? Which modeling type is this ? – percusse Sep 24 '16 at 14:27
  • I am refering to this modeling type https://en.wikipedia.org/wiki/State-space_representation. The transfer function is represented by G(s) as you can see in the middle of the above link page. – Evi Panayiotara Sep 24 '16 at 14:34
  • I know what those are. What is your first equation then ? You are in time domain to start with. Transfer functions are in s domain and so on... This is not a standard model you are using – percusse Sep 24 '16 at 14:35
  • The first equation can be easily transformed to the state space model as: A= -G(^-1) * C, B= G(^-1) * B. Therefore we have x'=A*x + B * ip(t) and y L(^T)*x, where ip(t) the input of the system and L=B. – Evi Panayiotara Sep 24 '16 at 14:37
  • How can i express matrix B in matlab? – Evi Panayiotara Sep 24 '16 at 14:43
  • Ah so the prime is the derivative ? – percusse Sep 24 '16 at 16:21
  • Yes, sorry for the ugly notation – Evi Panayiotara Sep 24 '16 at 16:27
  • I think your problem is not about state space but reverse engineering the mapping regarding the connectivity matrix. If you recompose your question then probably you will attract more people. – percusse Sep 24 '16 at 16:34

0 Answers0