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

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
Thanks, this method works.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 2-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