draw lines between specific points with known length
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rozanna Pas
el 25 de Jun. de 2018
Comentada: Rozanna Pas
el 25 de Jun. de 2018
Hi guys,
I have in total 360 points. I want to draw line between specific points based on my data by having their length. For example, based on my Excel sheet all points from coloum A connect to coloum B and Coloum C is thier length (distance between these points).
How can I plot these lines?
Thanks in advance,
3 comentarios
Respuesta aceptada
Nithin Banka
el 25 de Jun. de 2018
Editada: Nithin Banka
el 25 de Jun. de 2018
from what I have understood, you want to plot different line segments connecting points from your data. I took an example to explain you how to do it.
data = rand(360, 4); %random 360 point pairs with x-coordinates as column 1 and 2, y-coordinates as column 3 and 4
hold on;
for i=1:360
plot(data(i, 1:2), data(i, 3:4));
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!