MATLAB - Plotting - Tutorials Point x = [-100:5:100]; y = x.^2; plot(x, y) MATLAB draws a smoother graph −. Adding Title, Labels, Grid Lines and Scaling on the Graph. MATLAB allows you to add title, labels along the x-axis and y-axis, grid lines and also to adjust the axes to spruce up the graph. The xlabel and ylabel commands generate labels along x-axis and y-axis.