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 个评论

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.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

提问:

2025-9-11

评论:

2025-9-11

Community Treasure Hunt

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

Start Hunting!

Translated by