Thursday, 4 August 2016

MATLAB Programming 49 - adding some functionality to graph (1)


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.

The title command allows you to put a title on the graph.

The grid on command allows you to put the grid lines on the graph.

The axis equal command allows generating the plot with the same scale factors and the spaces on
both axes.

The axis square command generates a square plot.



No comments:

Post a Comment