Matlab5 - AMsignal3=filter(Num,1,AMsignal2 plot(t(1000:1300...

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

View Full Document Right Arrow Icon
% Add titles % Loaded SpectrumAnalyer.m % Created time axis and plotted 100hz sinusoid t=(1:.0001:10); z=cos(2*pi*1000*t); plot (t(1:300), z(1,300)) SpectrumAnalyzer (z,10000) title ( 'Spectrum Analyzed Cosine Wave' ) % Put sinusoid through SpectrumAnalyzer % 100hz sin1=sin(2*pi*100*t); % plot it (1:300), sin1(1:300); SpectrumAnalyzer(sin1,10000); % soundsc (x,10000) AMsignal=(1+sin1).*z; % plot it (1:300), sin1(1:300); title( 'Amsignal vs. Time' ) xlabel( 'Time' ) ylabel ( 'Frequency (Hz)' ) SpectrumAnalyzer(AMsignal,10000) title( 'Spectrum Analyzed Amsignal vs. Time' )   AMsignal2= AMsignal.*z; plot(t(1:300),AMsignal2(1:300)) SpectrumAnalyzer (AMsignal2,10000)
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: AMsignal3=filter(Num,1,AMsignal2); plot(t(1000:1300), AMsignal3(1000:1300)) title( 'Filtered Coherently with Low Pass' ) xlabel ( 'Frequency (hz)' ) ylabel ( 'Power' ) % Start on Envelope Detector w=AMsignal.*10000; h=filter(num,1,AMsignal); plot(t(1000:1300),h(1000:1300)) Diode=(w<0).*w; filterDiode=filter(Num,1,Diode); plot(t(1000:1300), Diode(1000:1300)) title( 'Envelope Detection Using Diode' ) xlabel ( 'Time' ) ylabel ( 'Frequency (Hz)' ) SpectrumAnalyzer (Diode, 10000) title( 'Spectrum Anaylzed Diode Graph' ) xlabel ( 'time' ) ylabel( 'Frequency (Hz)' )...
View Full 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