How to use gplot for co-ordinates

7 Ansichten (letzte 30 Tage)
Brian
Brian am 2 Sep. 2013
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

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by