Question: 1 . Download the data file from the assignment In computer - lab test 2 : signal processing on Canvas. The file you need is
Download the data file from the assignment In computerlab test : signal processing on Canvas. The file you need is named qmat, where and are the day and start time of your laboratory class.
Put this file in your MATLAB working folder.
Load this file and extract a time array t and a signal array y with the following code
data loadfilename;
replacing filename with the name of the file you downloaded.
Then
a Take the Fourier transform of these data
b Plot the spectrum for frequencies f
c Identify the peak frequency the frequency component with the largest magnitude and make MATLAB write it to the screen hint: the output of a command is automatically written to the screen if there is no semicolon on the end
Put all of these commands in a mfile for submission.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
