How to draw bunch of line segments?
Mostrar comentarios más antiguos
I would like to draw [x1 x2],[y1 y2] line segments, and I have data in the form X1(i) = x1 etc. and i=1:1000; Is it possible to draw the lines without a for cycle?
Respuesta aceptada
Más respuestas (1)
Fangjun Jiang
el 22 de Ag. de 2017
x=1:10;
y=rand(size(x));
line(x,y);
Categorías
Más información sobre Graphics Performance 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!
