Signal Phase Shift (co-phased signals)
I am trying to perform a phase shift based on the information provided in the following URL
However, I am not sure if I follow the instructions precisely since I am getting 'Imaginary parts of complex X and/or Y arguments ignored' warning. I understand this error is generated when in second plot I try to plot S1 signal when its a complex number. I need to plot S1 as without it I cannot visually see if any phase shift of 90 degrees has actually been done.
Any help would greatly be appreciated.
Any information on signal co-p...how to find phase shift between two signals
Hi to all,
I am presently facing problem with finding the phase shift in two
Digital signals in MATLAB. I have two signals one is standard sine wave
and other is output of my mechanical system which is again sine wave
with some phase shift. can any body tell me how can I find exact phase
shift in MATLAB.
Thank you in advance
> Hi to all,
> I am presently facing problem with finding the phase shift in two
> Digital signals in MATLAB. I have two signals one is standard sine wave
> and other is output of...phase shift between harmonics in two signals
I have next problem. There are two signals: the original one and the signal which is a system's response on the first one. In a simple case I use a combination (sum) of sine waves with different frequencies as the original signal. Output signal will be a sum of multiple sine waves with the same frequencies; however, on each frequency it will have different phase shift. How can I determine phase shift for each frequency?
"Ivan Romadanov" <firstname.lastname@example.org> wrote in message <email@example.com>...
> I h...determining phase lag between two sinusoidal signals
I have two sinusoidal signals that I would like to compare the lag
between them. can I use matlab to do it? Is there an option in
matlab's fft function to extract the info easily? thanks.
On 15 May, 04:33, dean <deanmi2...@yahoo.com> wrote:
> I have two sinusoidal signals that I would like to compare the lag
> between them. can I use matlab to do it?
> Is there an option in
> matlab's fft function to extract the info easily? thanks.
No. You would probably find some sort of cross spectrum
more useful. Either use a canned routine lik XCORR in the
signal p...how to send a sinusoidal signal to an AO with a fixed phase difference with aother sinusoidal signal from an AI? Thank you!
In a While Loop, read a sinusoidal signal from an AI, extract frequency, amplitude and phase, and send a sinusoidal signal to an AO with a fixed phase difference and same frequency with the AI signal.
Thank you very much!
The simplest way I would do it if the system pemits (without RT, FFT, convolution etc) :
Set AO and AI with the same clock,
Connect two of AO channels with two of AI channels.
Generate AO voltalge ( sin , and cos ) near the expected frequency,record it at AI together w...Guidance in determining phase difference between two sinusoidal signals needed
I need some guidance in the selection of an algorithm to solve a specific
problem. My problem consists of determining the phase difference between two
150Hz (range within 1 Hz) sinusoidal signal with correlated noise between
signals but with good signal-to-noise ratio. The estimation must be very
precise (within 1x10(-7) rad if possible) and use a limited number of
samples to keep latency low - an online algorithm could be the way to go as
phase shifts happens slowly. I have been looking at high resolution sub
space methods but I'm not sure this is the answer to my problem. My overvie...How to introduce a phase shift into a signal which is a function of a variable theta either using Simulink /Matlab commands?
I have got a signal “psi(theta)”,where theta varies in 2*pi radians.
For my further system I need a signal “psi(theta-(2*pi/3))”
where psi(theta) is a function of another signal phi(theta) and
phi(theta)=integration(B(theta)*S) limits -90+alpha to +90+alpha.
How do I get it…?
...How to get the phase shift, the amplitude ratio and cross power spectral density Pxy between two signals?
How to get the phase shift, the amplitude ratio and cross power spectral density Pxy between two signals?
Hi, I am new to matlab and signal processing.
I have a problem:
I have 2 signals, one is regarded to be the input (x) and the other is the output (y). They have the same frequency. The relation between input x and output y is given by the frequency response function H, which is the Fourier transform of the unit impulse response function of the system. And the frequency response function can be calculated optimally from the input power spectral density Pxx and the cross power spectral den...MATLAB Phase Calculation
I'm not very used in Matlab and exspecially in Fourier Transforms calculation.
My problem is this one: I have to calculate and plot the phase spectrum of a signal that is not centered around zero. I realized that Matlab seems only to make a good calculation for a symmetric signal (odd or even) but it doesn't give any good results if I input a general signal.
To perform calculation I used this code
S_k=zeros(1,2*k); % pre-allocation
...Getting the phase of the original signal from a time shifted version.. phase wrap/unwrap?
I've been trying to get the phase of the original signal (x) from its time
shifted version (y).
I first calculate the fft of y. Then I calculate the phase shift for each k
as phase shift at k = 2*pi*k*shift/N where N is the total number of fft
points and k is the index for each point.
Then i just add the phase shift at k to the angle i get from the fft of y
I hope this isnt confusing. The problem is though the theory seems to be
correct this doesnt really work.
looking at the phase i get after the whole process described and the real
phase of x ... I can tell that the v...How do I Phase shift a signal?
I need to shift the phase of a time-discrete signal by a variable
degree (but only one at a time). I tried to do the fft, then multiply
with exp(j*phase), then do the ifft. But it didn't work. I didn't
even get a sine transformed into a cosine that way...
I hope that any of you could help me.
On May 30, 9:22 pm, "Christoph Neeb" <christoph_n...@gmx.de> wrote:
> I need to shift the phase of a time-discrete signal by a variable
> degree (but only one at a time). I tried to do the fft, then multiply
> with exp(j*phase), then do the ifft....How to phase shift a signal
I'm generating a signal using simulink, but my problem i
need to shift it right and left. this is easy by adjusting
the parameters when the block diagram is initialised, by
during the run-time, how could this be achieved?
Imagin the following scenario, if I have a sine generator,
and I set the phase shift initially to zero, but a
controller decided to shift it to the right by 10 degrees
during run-time, the sine wave generator has no input as
we all know, so how to keep modifing its phase shift in an
Thanks a lot in advance...
...how to calculate the phase difference between two square wave (acquired from two channel in one DAQ)
Hello everyone ,
I need a quickly help that as below :
I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
I have no idea how to measure or calculate the phase difference of two square wave base on synch...Signal Gain and Phase Calculation
I'd like to determine the signal gain and phase shift for 2
sinusoidal signals that I am acquiring from data acquisition
equipment. Are there Matlab commands to do this?
Background: I am basically trying to inject a sine wave into a
system and capture the sine wave coming out and use those 2 acquired
signals in Matlab to calculate the frequency response of the system
(Bode plot of the system).
Perhaps one of the toolboxes does this?
I'm a Matlab beginner so any input will help.
Mike Fogarty wrote:
> I'd like to determine the signal gain and phase shift for...