I want to use a single sine gen and then phase shift it by 90. please help in this... Is it possible ? Please Help ?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
L K
le 31 Août 2016
Réponse apportée : Pedro Manuel Carro Parafita
le 1 Mar 2019
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 commentaires
Adam
le 31 Août 2016
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.
Réponse acceptée
KSSV
le 31 Août 2016
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')
2 commentaires
Plus de réponses (1)
Pedro Manuel Carro Parafita
le 1 Mar 2019
You can use a hilbert transform and then take just the imaginary part of it.
x_shifted=imag(hilbert(x));
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!