matlab 2

6
Lab No.11 Practice (Signal Addition and Multiplication) CECOS College of Engineering and IT March July 2012 Designed by : Dawar Awan [email protected]

Transcript of matlab 2

Page 1: matlab 2

Lab No.11

Practice (Signal Addition and Multiplication)

CECOS College of Engineering and IT March – July 2012

Designed by : Dawar [email protected]

Page 2: matlab 2

CECOS College of Engineering and IT March – July 2012

Fourier series theory states that a periodic wave can be

represented as a summation of sinusoidal waves with

different frequencies, amplitudes and phase values.

The frequencies of the sinusoids are harmonically

related.

fk = k.fo

Where fo is the fundamental frequency and fk is the kth

harmonic.

Concept

Page 3: matlab 2

CECOS College of Engineering and IT March – July 2012

Signal addition

Page 4: matlab 2

CECOS College of Engineering and IT March – July 2012

Signal addition

y1

y2

Page 5: matlab 2

CECOS College of Engineering and IT March – July 2012

Signal addition

Page 6: matlab 2

CECOS College of Engineering and IT March – July 2012

Task1. Perform the following signal additions

a) u[n] + u[-n]b) u[n+2] + u[n-2]

2. Perform the following signal subtractionsa) u[n] - u [n+5]

b) [1,2,3,4,5] - [5,4,3,2,1]

3. Multiply the following two signalsa) 2n x u[n]

4. Decompose the following signal into its even and odd partsa) [1,2,3,4,5,4,3,2,1]

Assume -5 ≤ n ≤ 5 for all questions