when plotting something the plot becomes messy

x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y)
when i try to plot someting on matlab i always get messy plots. For an example i have used a very basic equation given above and my plot looks something like this,

3 件のコメント

Geoff Hayes
Geoff Hayes 2020 年 3 月 24 日
Eranja - do those "artifacts" just appear on the figure where you are doing the plot or elsewhere in the MATLAB GUI? Which version of MATLAB and operating system are you using?
darova
darova 2020 年 3 月 24 日
See this answer
Eranja Noopehewa
Eranja Noopehewa 2020 年 3 月 25 日
Thanks, this method works.

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2020 年 3 月 24 日

コメント済み:

2020 年 3 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by