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 commentaires

Sam Chak
Sam Chak le 11 Sep 2025

Post the code and we will evaluate it.

Austin
Austin le 11 Sep 2025
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])
Austin
Austin le 11 Sep 2025
just kidding. i closed matlab and restarted it. all better for this one. Thanks though.

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 11 Sep 2025

Commenté :

le 11 Sep 2025

Community Treasure Hunt

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

Start Hunting!

Translated by