How to use gplot for co-ordinates
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
Accepted Answer
More Answers (1)
Brian
on 2 Sep 2013
0 votes
6 Comments
Dishant Arora
on 2 Sep 2013
You need to show your piece of code. saying "index exceeds matrix dimensions" wouldn't help. And did you try to debug it
Brian
on 2 Sep 2013
Dishant Arora
on 2 Sep 2013
As I said earlier in my answer x and y were row vectors but in your case ginput returns x and y as column vectors. you need to take care of that .
Brian
on 2 Sep 2013
Dishant Arora
on 2 Sep 2013
use ones matrix instead of identity matrix as argument in gplot.
gplot(ones(length(x)), [x , y])
Brian
on 2 Sep 2013
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!