Why is it showing "Incorrect" for a Task in "Create Animated Plots with MATLAB" course?

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:
Screenshot

3 Comments

I wrapped the for loop between hold on and hold off - it still showed "Incorrect". Thank you for the help anyways, @Walter Roberson.
@Aditya Majumdar refesh the task page , and run the task again.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2026a

Asked:

on 11 May 2026 at 13:01

Commented:

on 12 May 2026 at 4:08

Community Treasure Hunt

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

Start Hunting!