How to use gplot for co-ordinates

1 次查看(过去 30 天)
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

采纳的回答

Dishant Arora
Dishant Arora 2013-9-2
gplot(eye(length(x)) , [x' , y'], '*');
% x and y are row vectors containing co-ordinates.

更多回答(1 个)

Brian
Brian 2013-9-2
It says "??? Index exceeds matrix dimensions."
Really don't know what I'm doing wrong.
Thanks for your help
  6 个评论
Dishant Arora
Dishant Arora 2013-9-2
use ones matrix instead of identity matrix as argument in gplot.
gplot(ones(length(x)), [x , y])
Brian
Brian 2013-9-2
Thanks a lot, works perfect

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by