MATLAB: How to display single points (-24,9) and (-18,3) in a plot ranging from x-co-ordinates: (-27,27) Y-co-ordinates: (-27,27) by dot

I want to trace a path of a robot starting from these 2 points. I would like to know how to inculcate previous plot in current

Best Answer

Is something like this what you mean?
figure
hold on
plot(-27:27,-27:27)
h = plot([-24 9],[-18 3],'.');
set(h,'MarkerSize',24)