MATLAB: Having trouble making a surface plot, was wondering if anybody could help me out.

surfsurfacesurface plot

Best Answer

You have 48 years of income information but only 47 years. If you add one more year to your x then your code will produce output.