Assuming you have two variables, x1
and x2
containing the two x-coordinates and two variables, y1
and y2
containing the two y-coordinates of the two points, you can define those points as follows:
main.m58 chars4 lines
You can then plot these points on a graph as follows:
main.m182 chars5 lines
This will plot the two points on a graph with point1
represented by a red circle and point2
represented by a blue square.
gistlibby LogSnag