Also, for some reason whenever I add to the code and then re-execute to test how it's running, it saves it from where it left off, as opposed to starting from the over from the beginning. Sorry, I'm kind of new to this. Any help would be appreciated.
N = 1000;
t = linspace(0,100,N);
x = t.*sin(t);
y = t.*cos(t);
curve = animatedline('Color','g');
grid on;
for i = 1:length(x)
addpoints(curve,x(i),y(i));
drawnow
pause(0.001)
end
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/608866-how-can-i-get-my-figure-window-to-pop-up-with-the-animation-playing-when-i-execute-the-code#comment_1046731
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/608866-how-can-i-get-my-figure-window-to-pop-up-with-the-animation-playing-when-i-execute-the-code#comment_1046731
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/608866-how-can-i-get-my-figure-window-to-pop-up-with-the-animation-playing-when-i-execute-the-code#comment_1048371
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/608866-how-can-i-get-my-figure-window-to-pop-up-with-the-animation-playing-when-i-execute-the-code#comment_1048371
Sign in to comment.