project2_solutions

project2_solutions - ECE 301 Project 2 Solutions Daniel...

This preview shows pages 1–4. Sign up to view the full content.

ECE 301 Project 2 Solutions Daniel Aguiar Summer 2010 1 Square Wave a k = sin ( πk 2 ) πk (1) b k = 2 sin ( πk 2 ) πk (2) -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 -1 0 1 -0.2 0 0.2 0.4 0.6 0.8 1 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -0.2 0 0.2 0.4 0.6 0.8 1 2 Saw Tooth a k = - ( - 1) k jπk (3) b k = - 2 ( - 1) k πk (4) -5 0 5 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 -5 0 5 -1 -0.5 0 0.5 1 2
-3 -2 -1 0 1 2 3 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 3 Code %Script to generate solutions for ECE 301 Project 1 %Daniel Aguiar %Purdue University %Summer 2010 %Square Wave ******************************************* clear close all clc load square_wave; N_harmonics = 7; k = 1:1:N_harmonics; b_k = [1/2 2*sin(pi*k/2)./(pi*k)]; x_tilde = zeros(N_harmonics+1,length(t)); x_tilde(1,:) = b_k(1)*ones(size(x));

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

project2_solutions - ECE 301 Project 2 Solutions Daniel...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online