matlab file to read data into matrices and plot them