Answers for "matlab plot with motion"

1

matlab plot with motion

n = 50;
XY = 10 * rand(2,n) - 5;
for i=1:n
    plot(XY(1,i),XY(2,i),'or','MarkerSize',5,'MarkerFaceColor','r')
    axis([-5 5 -5 5])
    pause(.1)
end
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language