Why is my plot taking so long to plot?

I am trying to plot some stats for a hw assignment. It has a large number of points so I understand it will take a while to load but when I run even a simple plot it takes more than 3 minutes to load. what might be the reason?

3 Comments

Post the code and we will evaluate it.

figure
t = linspace(-5,4,50);
y= -2.* t.^2 + 8.*t +17;
plot(t,y)
title("Position Over Time")
xlabel("Time (sec)")
ylabel("position (ft)")
axis([0, max(t), 0, max(y)*1.1])
just kidding. i closed matlab and restarted it. all better for this one. Thanks though.

Sign in to comment.

Answers (0)

Asked:

on 11 Sep 2025

Commented:

on 11 Sep 2025

Community Treasure Hunt

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

Start Hunting!