Plot straight line between points
60 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christo van Rensburg
am 2 Mai 2020
Kommentiert: Christo van Rensburg
am 2 Mai 2020
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!
0 Kommentare
Akzeptierte Antwort
Olawale Ikuyajolu
am 2 Mai 2020
Bearbeitet: Olawale Ikuyajolu
am 2 Mai 2020
Click here for the solution to similar problemClick here
1 Kommentar
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!