How to use gplot for co-ordinates
1 view (last 30 days)
Show older comments
I very simply want to use gplot for two vectors (x and y), such that they create 5 co-ordinates.
How do I do this? (syntax-wise)
Thanks a lot
0 Comments
Accepted Answer
Dishant Arora
on 2 Sep 2013
gplot(eye(length(x)) , [x' , y'], '*');
% x and y are row vectors containing co-ordinates.
0 Comments
More Answers (1)
Brian
on 2 Sep 2013
6 Comments
Dishant Arora
on 2 Sep 2013
use ones matrix instead of identity matrix as argument in gplot.
gplot(ones(length(x)), [x , y])
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!