BasisFunctions

BasisFunctions - %set time interval and sampling f =...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Square Wave
Background image of page 1

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

View Full DocumentRight Arrow Icon
Three Basis Functions oscillations slope
Background image of page 2
Seven Basis Functions oscillations slope
Background image of page 3

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

View Full DocumentRight Arrow Icon
Thirteen Basis Functions oscillations slope
Background image of page 4
Fifty Basis Functions oscillations slope
Background image of page 5

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

View Full DocumentRight Arrow Icon
Matlab code N_harmonics = 50; %number of harmonics t = -1:.001:1;
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %set time interval and sampling f = 0.5*ones(size(t)); %assign an offset %perform loop summation for i=1:N_harmonics coeff = (2/pi)*[((-1)^(i-1))/(2*i-1)]; %ignore for now f = f+ coeff*cos((2*i-1)*3*pi*t); end...
View Full Document

This note was uploaded on 02/27/2008 for the course BME 513 taught by Professor Yen during the Fall '07 term at USC.

Page1 / 6

BasisFunctions - %set time interval and sampling f =...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online