How to use gplot for co-ordinates
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Brian
2013-9-2
0 个投票
6 个评论
Dishant Arora
2013-9-2
You need to show your piece of code. saying "index exceeds matrix dimensions" wouldn't help. And did you try to debug it
Brian
2013-9-2
Dishant Arora
2013-9-2
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
2013-9-2
Dishant Arora
2013-9-2
use ones matrix instead of identity matrix as argument in gplot.
gplot(ones(length(x)), [x , y])
Brian
2013-9-2
类别
在 帮助中心 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!