Clear Filters
Clear Filters

90 degree phase shift

36 views (last 30 days)
Yuntian Luo
Yuntian Luo on 5 Dec 2019
Commented: Ridwan Alam on 14 Dec 2019
Hi,
I am using the vary phase of signal during simulation (https://www.mathworks.com/help/simrf/ug/variable-phase-shift.html), when I open the MATLAB command, the example shown works with the phase varying 180 degree. But when I change the simulink control signal into 90 degree, the output becomes into a straight line rather than 90 degree phase shift.
I was wondering if someone knows how to fix this problem or some other ways of doing the 90 degree phase shift.
Thanks
  1 Comment
Yuntian Luo
Yuntian Luo on 10 Dec 2019
Hi thanks again for answering the question, I am kind of busy these days, when I check the answer and done the simulation, I will vote up.
Thanks

Sign in to comment.

Accepted Answer

Ridwan Alam
Ridwan Alam on 5 Dec 2019
Edited: Ridwan Alam on 6 Dec 2019
Updated answer:
The problem is with the way "Outport" and "Configuration" blocks are used here. For example, change the Output parameter of the "Outport" block to Magnitude and Angle mode, and connect both output ports to the scope. Then you can track both the changes in magnitudes and angles of the signal. Also, on the "Configuration" block, make sure to uncheck the noise parameter.
Untitled.png
Hope this helps.
  5 Comments
Yuntian Luo
Yuntian Luo on 14 Dec 2019
Thanks. I got your point. The sigal here are the complex type. Now I just want to have90 degree of the real signal instead of complex one. For example, the input is sin(wt) then the output is cos(wt), do you have some method to build it? Or can I rechange the complex signal into the real signal ?
Thanks
Ridwan Alam
Ridwan Alam on 14 Dec 2019
That sounds like a different question. Please post as a new question and we will try to answer.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!