# How to Normalize Frequency in MATLAB

I know all about conversion of frequency from HZ to normalized frequency and from normalized frequency to angular frequency ,but I wonder how it is done in MATLAB. I have the following code:

f:0:0.001:1;
omega=pi*f


here f=normalized frequency and omega=angular frequency. My question is how do we get the interval value(0.001) for our normalized frequncy.

Thanks for any help

• This should answer your question: dsp.stackexchange.com/questions/15219/… – Matt L. Jul 26 '14 at 13:16
• Thanks for the link.But acctually my question is how do we go about deciding the interval valu.in this case it is 0.001 why not 0.002? – Lakshmi Jul 26 '14 at 14:03