I want to use a single sine gen and then phase shift it by 90. please help in this... Is it possible ? Please Help ?

54 次查看(过去 30 天)
i want to use a single sine gen and then phase shift it by 90.
please help in this...
And also i wanted to know how to design all pass filter
  2 个评论
Adam
Adam 2016-8-31
A 90-degree phase shifted sine wave is just a cosine wave. So if that is literally what you want to do then just create a cosine instead of a sine.
L K
L K 2016-8-31
but I have a sine wave gen and i will be giving a sine input to one block and phase shifted input to other block... Basically its just 1 sine wave block from which I am taking two signals to 2 blocks i.e one phase shifted and other just a plain sine wave

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2016-8-31
t = linspace(0,2*pi) ;
x = sin(pi/4*t) ;
plot(t,x,'r')
hold on
x = sin(pi/4*t+pi/2) ; % phase shift by pi/2, which is same as cos
plot(t,x,'b')

更多回答(1 个)

Pedro Manuel Carro Parafita
You can use a hilbert transform and then take just the imaginary part of it.
x_shifted=imag(hilbert(x));

类别

Help CenterFile Exchange 中查找有关 Sensors and Transducers 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by