Why is it showing "Incorrect" for a Task in "Create Animated Plots with MATLAB" course?
Show older comments
I was doing this task in the new "Create Animated Plots with MATLAB" course. But whenever I ran the code, it showed Incorrect. On closer inspection, I saw that when I ran it manually, the animation ran till x = 7.1 but when the code is executed on clicking "Submit", the animation runs till x is a little less than 7. Why is this happening and how can I complete this task?
Code:
for idx = 1:numel(y)
scatter(x(idx),y(idx),40,'filled')
drawnow
end
Screenshot:

3 Comments
Walter Roberson
on 11 May 2026 at 15:57
I wonder if it needs a "hold on" ?
Aditya Majumdar
on 11 May 2026 at 16:49
Edited: Aditya Majumdar
on 11 May 2026 at 16:52
VBBV
on 12 May 2026 at 4:08
@Aditya Majumdar refesh the task page , and run the task again.
Answers (0)
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!