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 comentarios

Sam Chak
Sam Chak el 11 de Sept. de 2025

Post the code and we will evaluate it.

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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 11 de Sept. de 2025

Comentada:

el 11 de Sept. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by