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 Kommentare

Sam Chak
Sam Chak am 11 Sep. 2025

Post the code and we will evaluate it.

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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 11 Sep. 2025

Kommentiert:

am 11 Sep. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by