- #1

- 159

- 13

## Main Question or Discussion Point

For the discrete complex sinusoid with period N, how many distnict sinusoids are there? And why?

- Thread starter Ahmad Kishki
- Start date

- #1

- 159

- 13

For the discrete complex sinusoid with period N, how many distnict sinusoids are there? And why?

- #2

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

How many Asin(ωt + Φ) 's are there? I suppose A can only be positive but Φ can have any value?

Did i address the right question?

- #3

- 159

- 13

Nope that wasnt my point.. I meant in terms of the frequency how many distinct sinusoids are there for discrete

How many Asin(ωt + Φ) 's are there? I suppose A can only be positive but Φ can have any value?

Did i address the right question?

- #4

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

I guess "discrete" has some meaning in DSP that i don't know.I meant in terms of the frequency how many distinct sinusoids are there for discrete

Are you asking in reference to a computer program of some sort ?

I'm guessing it's user defined

You defined frequency as 1/N

and[URL said:http://www.mathworks.com/help/dsp/ref/sinewave.html][/url]

Description

The SineWave object generates a discrete-time sinusoid. The sine wave object generates a real–valued sinusoid or a complex exponential. A real-valued, discrete-time sinusoid is defined as:

y(n)=Asin(2πfn+ϕ)

whereAis the amplitude,fis the frequency in hertz, and φ is the initial phase, or phase offset, in radians.

A complex exponential is defined as:

y(n)=Aej(2πfn+ϕ)

For both real and complex sinusoids, the amplitude, frequency, and phase offsets can be scalars or length-Nvectors, whereNis the desired number of channels in the output. When you specify at least one of these properties as a length-Nvector, scalar values specified for the other properties are applied to each of theNchannels.

one per amplitude.http://www.mathworks.com/help/dsp/ref/sinewave.html said:Generating Multichannel Outputs

For both real and complex sinusoids, theAmplitude,Frequency, andPhase offsetparameter values (A,f, andϕ) can be scalars or length-Nvectors, whereNis the desired number of channels in the output. When you specify at least one of these parameters as a length-Nvector, scalar values specified for the other parameters are applied to every channel.

For example, to generate the three-channel output containing the real sinusoids below, setOutput complexityto Real and the other parameters as follows:

y

Amplitude= [1 2 3]

Frequency= [1000 500 250]

Phase offset= [0 0 pi/2]_{1}= sin(2000πt) ; (channel 1)

y_{2}= 2sin(1000πt) ; (channel 2)

y_{3}= 3sin(500πt+π2) ; (channel 3)

But i am likely way off target , so will await a better informed response.

- #5

- 1,171

- 211

Complex sine? This is a complex sine:For the discretecomplex sinusoidwith period N, how many distnict sinusoids are there? And why?

:)

- #6

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

A question well stated is half answered

and as i said i'll await an answer from somebody who's more fresh on the subject than me.

old jim

- #7

- 1,171

- 211

Well, I'm not certain what he is asking. If he really means complex sine, that just complicates things ;)

A question well stated is half answered

and as i said i'll await an answer from somebody who's more fresh on the subject than me.

old jim

- #8

- 159

- 13

I was referring to e^jwn (where w is the angular frequency) as the complex sinusoid (thats how my book refers to it, i honestly thought it was not an ambiguous term)Well, I'm not certain what he is asking. If he really means complex sine, that just complicates things ;)

- #9

- 159

- 13

Thank you for the effort you spent here, but its my fault for not expressing the question unambiguouslyI guess "discrete" has some meaning in DSP that i don't know.

Are you asking in reference to a computer program of some sort ?

I'm guessing it's user defined

You defined frequency as 1/N

and

one per amplitude.

But i am likely way off target , so will await a better informed response.

- #10

- 159

- 13

Where e^(jwn) referes to the discrete complex sinusoid with period N and angular frequency wFor the discrete complex sinusoid with period N, how many distnict sinusoids are there? And why?

- #11

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

Pure math is not my strength.

I was taught a long time ago in high school electronics class how to use rotating phasors .

But that was 1962 and just high school so we didn't study Euler's equation.

And i observed with an oscilloscope the truism that when you add two sinewaves you get just another sinewave.

So in my simple world, any sinewave can be broken into its real and imaginary parts but it's still just one sinewave.

This tutorial agrees in the second slide, page 2 of 22, with my understanding ,of course in terms of t not n,

http://web.mit.edu/6.02/www/s2007/lec3.pdf

so e^(jwn) to me represents one sine function, represented by that rotating phasor.

To me they rotate in time; what would rotating in 'n' mean physically i can't say.

so i would answer your question: one.

But i'm no Euler.

hoping a math guru can help you further.

old jim

- #12

- 1,171

- 211

Time depedent sine function fAnd i observed with an oscilloscope the truism that when you add two sinewaves you get just another sinewave.

So in my simple world, any sinewave can be broken into its real and imaginary parts but it's still just one sinewave.

This tutorial agrees in the second slide, page 2 of 22, with my understanding ,of course in terms of t not n,

http://web.mit.edu/6.02/www/s2007/lec3.pdf

so e^(jwn) to me represents one sine function, represented by that rotating phasor.

To me they rotate in time; what would rotating in 'n' mean physically i can't say.

so i would answer your question: one.

But i'm no Euler.

f

In t=0 its' position is determined by modulus and initial phase angle φ

z

After time t, this phasor gets rotated by phase angle (ω

IF all the rotating phasors have the

Superposition of two or more sine functions gives another sine function only if their frequencies are equal

Sorry, I don't understand what you're trying to askFor the discrete complex sinusoid with period N, how many distnict sinusoids are there? And why?

- #13

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

Of course - i neglected to add that condition.Superposition of two or more sine functions gives another sine function only if their frequencies are equal

adding different frequency sines gives a

I've done that both with oscilloscope in high school and decades later with Fourier in Basic.

Thanks, zoki that helps me a lot.

- #14

- 1,171

- 211

I know that you know/understand this, but I'm not sure for OP. Maybe this remark could help him.Of course - i neglected to add that condition.

adding different frequency sines gives a~~complex~~complicatedwave

I've done that both with oscilloscope in high school and decades later with Fourier in Basic.

Thanks, zoki that helps me a lot.

- #15

jim hardy

Science Advisor

Gold Member

2019 Award

Dearly Missed

- 9,839

- 4,868

I never understood Laplace transforms just learned to use them .

I have a hard time imagining √-1 , so just think of j as making a quarter turn because if you do that twice you've reversed direction...or negated a vector.

One needn't understand impulse and momentum to use a hammer.....

I envy you fellows who are fluent in higher math. Perhaps at my advanced age i should have another go at it - i have more patience now than in my twenties.

thanks again,

old jim

- #16

Baluncore

Science Advisor

2019 Award

- 7,412

- 2,453

In my opinion the answer to the OP can be either 1 or 2, depending on the interpretation of counting “how many” and the meaning of “distinct sinusoid”. The term “discrete complex sinusoid” is singular.For the discrete complex sinusoid with period N, how many distnict sinusoids are there? And why?

Consider Z = a + bi.

1. The “complex number” Z is singular. It represents only one “point” on the complex plane.

2. But Z can be resolved into the two separate real numbers a and b, kept orthogonal by the “turn left” operator i.

- #17

- 159

- 13

Expressing a discrete function as fourier series means that you take the summation of k from 0 to N-1 of A[k]e^(-jkwn).. What i really wanted to know is why is the summation only from 0 to N-1 for discrete but from minus infiniti to infiniti for continuous? My book for signals and systems (by simon haykin) says that there are only N discrete complex sinusoids (e^jkwn) where N is the fundamental period of e^jwn, but how and why?

- #18

donpacino

Gold Member

- 1,439

- 282

You can think of N as the number of discrete points making up the sinusoids.

In order for the discrete points to represent a sinusoid, there must be at least one discrete point per period and N must be divisible by pi (which will mean that the discrete points will show up at the same amplitude each period and will show up each period).

This also means that the smallest number of discrete points that can represent one cycle of a sinusoid is 1.

I know that information is part of the proof, but im not sure where to go from there

- #19

Baluncore

Science Advisor

2019 Award

- 7,412

- 2,453

For N points in time, complex time data from 0 to N-1 is transformed to complex frequencies 0 to N-1. The frequency 0 must be present as it represents the DC offset. The complex time data is actually constructed from 2*N real samples. This satisfies the requirement that only N complex frequencies can be transformed from 2*N real data points.

See; http://en.wikipedia.org/wiki/Nyquist–Shannon_sampling_theorem “In the field of digital signal processing, the sampling theorem is a fundamental bridge between continuous signals (analog domain) and discrete signals (digital domain).”

- #20

meBigGuy

Gold Member

- 2,323

- 405

- #21

Baluncore

Science Advisor

2019 Award

- 7,412

- 2,453

What do you mean by "point"?

If there are 128 samples in your time record then there will be 64 discrete phasors in your frequency domain. Each phasor is represented by a Cos() and a Sin() component, the combination of which is a single sinusoid specified by amplitude and phase.

- #22

- 159

- 13

If i can simply restate the question... Why does the discrete fourier series summation go from zero to N-1 wheras for continuous fourier series, the summation goes from negative infiniti to infiniti...

- #23

Baluncore

Science Advisor

2019 Award

- 7,412

- 2,453

How would you place N discrete points between +infinity and –infinity?

- #24

- 159

- 13

Why NHow would you place N discrete points between +infinity and –infinity?

- #25

Baluncore

Science Advisor

2019 Award

- 7,412

- 2,453

That is N discrete samples in time, giving N/2 discrete frequencies.from zero to N-1

- Last Post

- Replies
- 23

- Views
- 2K

- Replies
- 18

- Views
- 2K

- Last Post

- Replies
- 3

- Views
- 1K

- Last Post

- Replies
- 15

- Views
- 2K

- Last Post

- Replies
- 4

- Views
- 1K

- Last Post

- Replies
- 7

- Views
- 2K

- Last Post

- Replies
- 2

- Views
- 11K

- Last Post

- Replies
- 3

- Views
- 2K

- Last Post

- Replies
- 22

- Views
- 10K

- Last Post

- Replies
- 2

- Views
- 1K