when plotting something the plot becomes messy

2 views (last 30 days)
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 Comments

Sign in to comment.

Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!