MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > time<>frequency conversions and displaying in mat... 

Subject: time<>frequency conversions and displaying in matlab From: MICHAEL Date: 18 Jul, 2009 08:10:04 Message: 1 of 5 
hi 
Subject: time<>frequency conversions and displaying in matlab From: Wayne King Date: 18 Jul, 2009 10:12:01 Message: 2 of 5 
Hi Michael, you need to create time and frequency vectors that are meaningful in the sense that the interval between sequence values is correct. There are a number of examples of this in the Matlab doc, so please do look for these particularly in the Signal Processing Toolbox documentation, but the following example may help: 
Subject: time<>frequency conversions and displaying in matlab From: MICHAEL Date: 18 Jul, 2009 11:41:01 Message: 3 of 5 
1. why did you divide by length(x) in df=1/(length(x)*dt); 
Subject: time<>frequency conversions and displaying in matlab From: Wayne King Date: 18 Jul, 2009 18:07:01 Message: 4 of 5 
Hi Michael, because the DFT estimates the frequency content of a discretetime sequence at intervals (in Hz) of 1/(N*DT) where N is the length of the sequence and DT is the sampling interval. 
Subject: time<>frequency conversions and displaying in matlab From: Greg Date: 19 Jul, 2009 00:50:47 Message: 5 of 5 
On Jul 18, 4:10 am, "michael" <bezen...@gmail.com> wrote: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.