matlab plot 2 vectors
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 4 de Oct. de 2012
Editada: Azzi Abdelmalek
el 4 de Oct. de 2012
not different from yours
plot([x x(1)],[y y(1)],'r-')
3 comentarios
Azzi Abdelmalek
el 4 de Oct. de 2012
maybe if you specify how to close the curve? because like this, it is a line
joo
el 4 de Oct. de 2012
joo
el 4 de Oct. de 2012
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!