MATLAB Answers

draw lines based on coordinates

67 ビュー (過去 30 日間)
Locks 2014 年 11 月 17 日
コメント済み: Siam 2014 年 11 月 17 日
I am looking for a way to add a line to a convex function based on the coordinates.
I have a convex funtion going from x=1, y=19.99 to x=17, y=18.57. How is it possible to draw a straigt line between those two coordinates?
Thank you very much for the help!


Siam 2014 年 11 月 17 日
You can try this to draw the line
x = [1 17];
y= [19.99 18.57];
You can change the color as 'r' is for red and line width as well which is 4 for this case.
  4 件のコメント
Siam 2014 年 11 月 17 日
Please open a new question and provide some more information with a demo image if possible.


その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by