How to use gplot for co-ordinates

1 回表示 (過去 30 日間)
Brian
Brian 2013 年 9 月 2 日
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 Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by