sine wave shifted 90 degree

8 views (last 30 days)
Saif Zahran
Saif Zahran on 27 Feb 2019
Commented: Rena Berman on 5 Mar 2019
Dear all,
i have sine wave with amplitude and frequency, and i want to shiftted by 90 degree to get the value of Beta. can anyone help me to do this.
i want the output to look as the above figure using single sine wave.
Thanks
  3 Comments
Walter Roberson
Walter Roberson on 27 Feb 2019
If it were discrete then you could have worked with methods such as memory blocks, but since it is continuous you cannot, so I recommend the approach I described earlier, of adding a phase before you take the sine.
Rena Berman
Rena Berman on 5 Mar 2019
(Answers Dev) Restored edit

Sign in to comment.

Answers (1)

Honglei Chen
Honglei Chen on 27 Feb 2019
If it's really just a sine wave, you can consider hook it up with a integrator.
HTH
  2 Comments
Walter Roberson
Walter Roberson on 27 Feb 2019
Be careful with the initial condition. You cannot just compute it based upon the initial sin() result, as just looking at the sin() output does not tell you where you are in the cycle.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!