Question: how to set a different color line for final pair of coordinates?

plot([[1,1],[10,20],[30,23],[12,30]]);

all lines are in the same color, but would like to specify the final line [30,23],[12,30] another color how to do?

 

 

Please Wait...