Plot straight line between points
60 ビュー (過去 30 日間)
古いコメントを表示
Christo van Rensburg
2020 年 5 月 2 日
コメント済み: Christo van Rensburg
2020 年 5 月 2 日
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 件のコメント
採用された回答
Olawale Ikuyajolu
2020 年 5 月 2 日
編集済み: Olawale Ikuyajolu
2020 年 5 月 2 日
Click here for the solution to similar problemClick here
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!