matlab plot 2 vectors
이전 댓글 표시
hello!
i have X and Y data. if i plot it i get an open curve, but want to obtain a closed curve and so i do
XX=[X(end) X];
YY=[Y(end) Y];
plot(XX,YY,'r-')
is there a more elegant way to do it? i can't find a better solution...
thank you so much!
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2012년 10월 4일
편집: Azzi Abdelmalek
2012년 10월 4일
not different from yours
plot([x x(1)],[y y(1)],'r-')
댓글 수: 3
Azzi Abdelmalek
2012년 10월 4일
maybe if you specify how to close the curve? because like this, it is a line
joo
2012년 10월 4일
joo
2012년 10월 4일
카테고리
도움말 센터 및 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!