Read the examples in the documentation to get an idea of how to proceed.
Your question as phrased is close to asking someone to do all the major work for you.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!