Convert complex number to phase shift in simulink
3 views (last 30 days)
It is my first quesiton here, so I am sorry if the format is not the right one or if some information is lacking, feel free to ask for more.
I am currently modelling some phenomena in structural dynamics, combining pure simulink blocks and simscape blocks.
I have velocity measurements (real-valued) on which I perform computations with complex-valued matrices, which give me a complex-valued output.
However, I use this ouput in a feedback loop so I have to convert it back to some real signal for the simulation to run.
My idea was then to convert this complex value that has a relative phase to my input signal into some real signal with same amplitude, but showing a time shift matching the argument of my complex number, but I can't figure it out.
Any suggestions ?
I know of the transport delay / time delay (thought I am not sure how to use them in such a situation), but it feels overkill for something that looks so basic. Moreover, I need to perform some linear analysis for stability on this model, which seems to be incompatible with such delay blocks.
What is the right way to do this ?