Learn to use the tools in MATLAB. Some that might be useful MIGHT be:
read the help for those tools, and TRY IT.
Yes, I know that you want specific code. But you have given very little information. So it is time for you to learn about how to read a data file into MATLAb.