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

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

View Full Document Right Arrow Icon
% 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
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern