Please do not put requested example code in a comment. Add it to your original question as an edit. This time, because you are new to Mathematica.SE, I did it for you to show how it's done.
–
m_goldbergFeb 10 '13 at 15:17

We've had quite a few similar questions. For example, see this one
–
m_goldbergFeb 10 '13 at 15:25

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.