Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Summary This assignment involves writing a computer program in the C programming language. It will read in a file of the values of a signal
Summary
This assignment involves writing a computer program in the programming language. It will read in a file of the values of a signal and then calculate its Discrete Fourier Transform DFT The program will then attempt to 'smooth out' the signal using a moving average and then recalculate the transform.
Throughout the following questions, the 'length of the record' is denoted by The data you have generated from the spreadsheet 'Assignmentdata' will consist of columns of numbers. The first is the time value and the next four are four distinct signals. You should copy and paste this data into a plain text file to use as your input.
There are three parts to the assignment, be sure and answer the questions from all three parts.
Part
Two values will be used for your calculations here; and Your program should carry out the following steps.
Read in the list of values in your input file, noting the number the number of values in each signal that is each column of numbers in your data. Let to be the four signals in your data. The following steps will be carried out for each of the four signals you have.
For the first signal in your data, calculate the DFT of the signal for The result of your calculation should be a list of values in a file. Explain in your program comments or elsewhere in your submission how your program handles the complex values of the transform widehat
Repeat this process for length of record
Part
A second signal is constructed as the point moving average of the signal Using as the length of the signal, this is defined as follows:
For all and ::
Your program should now carry out the following steps.
Generate the signal from signal
Calculate the DFT of the signal for both values of the length of the record
Part
You should now have data files with the signal the smoothed signal and the transforms of both signals for lengths of record and
Draw a plot of the real and complex components of transform widehat
Draw plots of and arg where represents the modulus of the complex number and arg is the argument of So if and arg then
Explain the difference in your output when
Draw a plot of the real and complex components of transform widehat
Draw a plot of and arg
Explain what the transform you have calculated is telling you about the signal You should consider the meaning of the Fourier
Note: I have extensive Excel spreadsheet including signal data in the C programming language. However, due to its size, I am unable to upload it here. May I send it to you through an alternative way?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started