How to use gplot for co-ordinates
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Brian
il 2 Set 2013
0 voti
6 Commenti
Dishant Arora
il 2 Set 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
il 2 Set 2013
Dishant Arora
il 2 Set 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
il 2 Set 2013
Dishant Arora
il 2 Set 2013
use ones matrix instead of identity matrix as argument in gplot.
gplot(ones(length(x)), [x , y])
Brian
il 2 Set 2013
Categorie
Scopri di più su Data Exploration in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!