Click here to Skip to main content
15,921,531 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
It is desired to determine the DFT of the analogue signal
x(t) = 25 cos(10PIt)cos(400PIt).
(a)
Find the Nyquist rate of the signal.

410Hz

(b)
What is the record (signal) length if the desired frequency resolution is 5Hz?

0.2s

(c)
If the Nyquist rate from part (a) and the record length found in part (b) are used, find the number of points that will be contained in the DFT.

82

(d)
Use the MATLAB function fft to find and plot the DFT X(k). Add the frequency scale (in hertz) to the diagram.


I not sure how to write the script for the last part
Posted
Comments
Tarun.K.S 22-Oct-10 11:35am    
hey Robbie this is not a electronic signals forum!! i studied those in my college dayz though!
Robbie Chen 22-Oct-10 11:46am    
I just want to know how to write the matlab program for it.
I know how to plot the function but not sure how to plot the DFT
Sandeep Mewara 22-Oct-10 12:09pm    
Any effort made?

1 solution

Weren't you paying attention in class when the instructor told you how to do it?
 
Share this answer
 
Comments
Sandeep Mewara 22-Oct-10 12:08pm    
Comment from OP:
No the instructor did not teach me on the matlab stuff.
It is basically self exploratory.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900