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에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!