Solve plotData.m