June 2019
Beginner
553 pages
17h 41m
English
If x and y are vectors of the same length, the command plot(x, y) will produce a plot of all the pairs, and each point will be connected to the next by a line segment. If the x-coordinates are taken close enough together, the graph should resemble a smooth curve. The command plot(x, y, ’x‘) will plot the ordered pairs with x’s, but will not connect the points.
For example, to plot the function on the interval , set
The command plot(x, y) will generate the graph of the function. To compare the graph to that of sin x, we could set and use the command plot(x, y, x, z) to plot both curves at the same time. We can include additional arguments in the command to specify ...
Read now
Unlock full access