I have two coordinates, say x & y. I want to plot them on XY plane, with each reading of x & y by a dot. Is it possible?

I have coordinates value, say point(x,y). For each input of point I want to show it on XY plane by a single dot. I don't want to show it by line.

Answers (1)

You just need to specify the third option LineSpec:
plot(x,y,'.')
The LineSpec option is described in the plot documentation:
"LineSpec — Line style, marker symbol, and colorstring
Line style, marker symbol, and color, specified as a string..."
followed by a description of all of those options! The documentation really is very useful like that :)

2 Comments

I meant, i don't want to relate values, & second thing is, if values are present on all four quadrants. So I don't want to show it by any line.
Image will help you what I'm trying to plot.
@rohit: Your plot does not seem to use lines linking the nodes, and this seemed to be your goal: "...by a single dot. I don't want to show it by line"
What exactly is the problem with that plot, given that it a) does not have lines (as you wished), and b) uses some shape (which could be a dot)? Please explain in more detail, or use a graphics program to show us what you want.

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 13 May 2015

Edited:

on 14 May 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!