You can mark the first point of the plot in a new color by using the following code:
main.m212 chars11 lines
In this code, we first define some example x and y data. We then plot this data using the plot function. We turn on hold with the hold on command, so that we can add another plot object to the existing plot. We then use the plot function again, but this time only plot the first element of x and y in red by using the 'ro' option. Finally, we release the hold with the hold off command. The resulting plot should have the first point marked in red.
gistlibby LogSnag