This appears to be very likely homework, so you need to make an effort. In any case, it was clearly a task assigned to you. So that means you are the one who needs to learn, and that will involve making an effort. Break any task down into pieces. Start at the beginning.
If you have absolutely no clue how to do anything, then start with a tutorial. The MATLAB Onramp sessions are an excellent idea, but there are also many tutorials in MATLAB to be found on YouTube.