How do I phase shift a Simulink signal?

64 visualizaciones (últimos 30 días)
tevel hedi
tevel hedi el 12 de Mzo. de 2024
Respondida: Divyajyoti Nayak el 20 de Nov. de 2024
I have a simulink model and I want to give a 90 degree phase shift to a signal.
It is equivalent to multiplying the signal's fourier transform by -j*sgn*(w) (when w stands for angular frequency).
How do I do it?
  3 comentarios
tevel hedi
tevel hedi el 13 de Mzo. de 2024
Editada: tevel hedi el 13 de Mzo. de 2024
I use a sum of 2 sinus signals.
The matlab function block is where the phase shifting of 90 degrees supposed to occur.
Mathieu NOE
Mathieu NOE el 15 de Mzo. de 2024
what are the sinus frequencies and what is inside this matlab block ?
FYI, you have this solution :

Iniciar sesión para comentar.

Respuestas (1)

Divyajyoti Nayak
Divyajyoti Nayak el 20 de Nov. de 2024
Hi Tevel,
I see that you are creating an input signal by adding two sine wave signals, then splitting the input signal, one of which you want to shift the phase of in a ‘MATLAB function’ block. If the purpose of the function block is to only shift the phase then an alternative could be to create a separate phase-shifted input signal instead of splitting the input signal. Something like this:
To change the phase of signal sources, the ‘Phase offset’ parameter in the block parameters dialog box of the block can be used. Just double click on the signal source block to get the dialog box.
If the signal is generated using the ‘Wave Generator’ block, then the third argument or the ‘Phase’ name value argument in the ‘sin’ function can be used to set the phase.
Hope this helps!

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by