
Generating Sinusoidal Signals in MATLAB for Frequency Analysis
Learn how to generate sinusoidal signals in MATLAB for frequency analysis and explore the Nyquist sampling theorem. Experiment with different frequencies and methods to understand the behavior of sine and cosine waves. Submit a detailed lab report following specific requirements outlined by the University of Texas at Austin.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Lab 2 Part I Lab 2 Part I Instructions Instructions By Yunseong Cho The University of Texas at Austin, Fall 2020
Lab Overview For this lab, we generate the sinusoidal signal in Matlab and output to the figure. Remember the Nyquist s sampling theorem, the required sampling frequency for sampling and reconstructing a signal, must be greater than twice of the largest frequency component in the signal.
Sinusoidal Signal Generation - Function call Download lab2.m file from http://users.ece.utexas.edu/~bevans/courses/realtime/lectures/laboratory/c6748winDSK/lab2/index.html Run the code in order to see the plot The code shows you both discrete sine and cosine functions for a certain choice of fDesired and fs. Please understand the behavior of the code. Change the code to show cosine waves with two different frequencies side-by-side. You may declare fDesired1 and fDesired2, then make a copy of what we have inside the for loop. Plot two cosine waves with 1000Hz and 2000Hz Plot two cosine waves with 1000Hz and 7000Hz. Can you see the difference? Otherwise, why do we have this phenomenon mathematically?
Sinusoidal Signal Generation Difference Equation Change the code to implement sinusoidal generation using the difference equation method. Generate sinusoids at frequencies of 1 kHz and 2 kHz, with a sampling frequency of 8 kHz. Please try not to lose the advantage of the difference equation method. Please provide one screenshot showing 1 kHz sinusoid on channel 1 and 2 kHz sinusoid in lab report. Now generate two sinusoids at frequencies 1 kHz and 7 kHz. Repeat with two sinusoids at frequencies 2 kHz and 6 kHz. Please provide two screenshots in lab report.
Lab Report Submission Requirement Please refer general format listed under Lab Report section at, http://users.ece.utexas.edu/~bevans/courses/realtime/lectures/laboratory/c6748winDSK/lab2/index.html