When trying to use the default state-space model block, if there is a complex number valued in the matrices, there will be an error
To resolve that, firstly I need to look at pseudo reference model of state space on the internet
Then, create my own state-space block as a new subsystem
u is for input
y is for output
x is the state variable as an output (for sensing use, such as full state feedback)
And here is the inside
Now the problem is that,
- The IC (Initial Condition) block cannot simulate what lsim
can done in matlab code, there must be an exponential decay expected
result for the unforced solution, but what I've got is that the
initial condition only happened at the exact t=0 and there is
no exponential decay.
How do I solve it? - The Integrator and IC block cannot operate with complex valued number, the input and must be separated manually into real and imaginary part or magnitude and phase part and then joined together again. Is there any better way to operate them with complex valued number in simulink?
- The gain block of A, B, C, and D matrix look ugly, I haven't been able to change it in the shape of rectangle box as my reference model above. Is there any way to change it?
Finally, if there is any better solution for my problem, such as pre-builtin complex valued state-space model, or better subsystem, I would be happy to know it
modal_in
blocks do? $\endgroup$canonic_modal_initial
. I forgot to rename it, it's a vector forinitial codition x(0) for
$\endgroup$