Plot straight line between points
Mostrar comentarios más antiguos
Hi everybody,
I'm trying to plot something like this, but just for a number of datapoints.

But keep on getting something like this instead:

I've tried using 'line' but doesn't work and also 'bo-' in the plot command. My code at the moment is:
xVal = [Ax, Bx, Cx];
yVal = [Ay, By, Cy];
plot(xVal, yVal,'bo-'), grid on, hold on
line(xVal, yVal)
Any help is appreciated thanks!
Respuesta aceptada
Más respuestas (1)
darova
el 2 de Mayo de 2020
0 votos
Try this solution

Categorías
Más información sobre Annotations 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!