CE Prob 3k

CE Prob 3k - 0etermine values for ck for ki=1:2*N 1%the"1...

• Homework Help
• 1

This preview shows page 1. Sign up to view the full content.

% complex exponential: Prob 3k % Plot x(t) vs t and |ck| vs k clc;clear; A=1; %pulse amplitude %tau=1; %pulse width T=4; %period (pulse repeat time) m=500; %number of time points dt=2*T/m; %time step for 2 periods of plot %ao=A*tau/T; co=.75; wo=2*pi/T; N=10; %summation from -N to +N fo=1/T; %determine values for ck for ki=1:2*N+1; %the "1" is to include k=0 kc(ki)=-N+ki-1; %kc accounts for negative k kpi=pi*kc(ki); if kc(ki)==0 ck(ki)=co; else ak(ki)=(2/kpi)^2*(cos(kpi/2)-cos(kpi)); ck(ki)=.5*ak(ki); ckmag(ki)=abs(ck(ki)); end end % Assemble the pulse to plot over 2 cycles for j=1:m t(j)=j*dt; for ki=1:N
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern