Plotting Graphs

There are several ways to plot graphs in MATLAB. We will start by using the plot command to create a simple straight line graph by providing two sets of coordinates

defining the start and end points, and , respectively.