So im working on a program for a 2D Forward Kinematic robot arm, all seems pretty well until i tried to input 0 or 90 degrees. the plot just disappears when it overlaps with either x or y axis. can someone help me with this

2 件のコメント

Birdman
Birdman 2017 年 11 月 30 日
Share your code.
Jan
Jan 2017 年 11 月 30 日
"can someone help me with this": I assume: yes. Now please provide any details, such that helping is possible.

サインインしてコメントする。

回答 (1 件)

Star Strider
Star Strider 2017 年 11 月 30 日

0 投票

Guessing here, since we do not have your code. However I simulated this, and I assure you the plot is there. The width of the line is the same as the width of the axis line, so it only seems to disappear, especially if you specify a black line.
Try this, with and without the 'LineWidth',2 argument:
plot([0 0], [0 1], 'k', 'LineWidth',2)
If my guess is correct as what the problem is, you will see the line.

カテゴリ

ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索

質問済み:

2017 年 11 月 30 日

回答済み:

2017 年 11 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by