I need help with what code to type in to get the results. I know how to load the
ID: 1938778 • Letter: I
Question
I need help with what code to type in to get the results. I know how to load the data text and I don't know what N is. There are parts a, b, and c. 6.
The file Test1_P6_DATA.txt contains 500 samples taken at sampling frequency 10,000Hz from signal x(t).
a. Perform Fourier Transform to obtain a graph of the frequency spectra of the signal x(t)
Hint: Plot(fq(1:N/2), abs(X(1:N/2))*2/N)
b. Determine the amplitude and phase angle of each frequency component of the signal x(t): Frequency Amplitude Phase
c. Write an equation to express x(t) in terms of cosine functions.
Explanation / Answer
a)
b).amplitude =20V
phase angle=20 degress