Questions tagged [phase]

phase is angular shift between periodic signals.

phase is angular shift between periodic signals

  • for example signal x1(t)=cos(t) is the same as x2(t)=sin(t+PI/2)
  • angle PI/2 is the phase (angular shift) between sin(t) and cos(t)
  • phase is also used as angular coordinate for polar representations of phasor commonly used in electrical engineering
  • phase distortions of signals are called jitter
238 questions
3
votes
1 answer

Amplitude and phase spectrum. Shifting the phase leaving amplitude untouched

I have the data that has equivalent intervals and corresponding measurements at relevant points. As an example, here is the excerpt of the data I have: y =[2.118, 2.1289, 2.1374, 2.1458, 2.1542, 2.1615, 2.1627, 2.165 …
akkab
  • 401
  • 1
  • 6
  • 19
3
votes
3 answers

How can I preserve subgroups when changing role to public in Copy Headers build phase in XCode?

currently, the hierarchy is flattened out, and all the headers files are copied into a single Headers directory, no matter what subfolder they were in, in my Classes folder. This is a problem when referencing the headers, if the headers have…
johnrubythecat
  • 1,003
  • 1
  • 13
  • 31
3
votes
1 answer

Different functions for calculating phase/argument of complex numbers

Are there any differences between the cmath.phase() function from the cmath module, and the np.angle() function from numpy.
pew31
  • 61
  • 1
  • 5
3
votes
0 answers

Unwrap to remove discontinuity

I am stuck in this problem for a long time. I would really appreciate any help I can get. I have a complex equation which has branch cuts (4 of them, but in the attached code I just have one). This shows phase jumps across the y-axis. I am trying to…
3
votes
2 answers

angle() of a real number

I'm a bit confused about the angle() function in Matlab, in particular when applied to an array of real numbers. The angle() function should give me the phase of a complex number. Example: y = a + bi, ==> phase = arctan(b/a). Indeed, the following…
Liz Salander
  • 321
  • 3
  • 14
3
votes
2 answers

Non-linear system - calculating phase shift between two sine waves - Fourier and Hilbert

Edit: From the suggested use of the xcorr function, which gave a result of zero, this data is more likely to represent a non-linear system than I had first thought. In this case, the expressions for a and b are simplified and do not necessarily…
Natalie
  • 31
  • 5
3
votes
2 answers

Octave:Incorrect FFT phase spectrum

A small program that I wrote in octave does not yield desired phase spectrum. The magnitude plot is perfect though. f = 200; fs = 1000; phase = pi/3; t = 0: 1/fs: 1; sig = sin((2*pi*f*t) + phase); sig_fft = fft(sig); sig_fft_phase =…
Raj
  • 857
  • 11
  • 26
3
votes
2 answers

How to generate a sound that consists of different frequency-glide-segments via MATLAB?

I want to generate a sound via MATLAB which consists of a pre-defined number of different frequency-glides (sweeps). To this end I wrote a MATLAB code. However, I encountered two problems: 1) when I play the sound, the sound clicks throughout its…
anne w
  • 75
  • 6
3
votes
3 answers

Matlab fft on one period of sinewave returns phase of -pi/2. Why?

While trying to understand Fast Fourier Transform I encountered a problem with the phase. I have broken it down to the simple code below. Calculating one period of a 50Hz sinewave, and applying an fft algorithm: fs = 1600; dt = 1/fs; L …
DanK
  • 33
  • 3
3
votes
1 answer

What is Phase unwrapping and Why its needed

I am new to Digital Signal Processing field and trying to understand what is phase unwrapping and why it is needed. So far i have read that it's done to avoid phase jumps and to avoid multiple of 2pi is added to the difference between the two…
sumeet
  • 131
  • 4
3
votes
2 answers

Two-phase lookup: can I avoid "code bloat"?

Two-phase lookup question: Is there a more synthetic way to write this code, i.e. avoiding all those using directives? Something like using CBase; is what I would like, but it is not accepted. #include template class…
Pietro
  • 12,086
  • 26
  • 100
  • 193
3
votes
3 answers

How to determine phase shift of a sine waveform?

I understand how to get the Amplitude and frequency but not sure the phase shift? How does the it derive to π/4? Please advise.
Withhelds
  • 187
  • 3
  • 8
  • 16
2
votes
1 answer

JSF: why is empty test in rendered invoked during apply request values phase during form submission under request scoped POST REDIRECT GET

This question is spawned from the partial answer to JSF2: why does empty test in rendered of panelGroup in composite prevent action from being called? In the following an Element is an @Entity with a name and id. A view.xhtml JSF page takes the id…
2
votes
1 answer

How to remove discontinuities from complex angle of NumPy eigenvector components?

I am using NumPy's linalg.eig on square matrices. My square matrices are a function of a 2D domain, and I am looking at its eigenvectors' complex angles along a parameterized circle on this domain. As long as the path I am considering is smooth, I…
TribalChief
  • 797
  • 5
  • 11
2
votes
1 answer

Interpolating measured sine wave using python

I have 2 sampled sine waves obtained as a measurement from a DSO. The sampling rate of the DSO is 160 GSa/s and my signal is 60 GHz. I need to find the phase difference between the two sine waves. Both are the same frequency. However, the sampling…
1 2
3
15 16