MATLAB: I need help finishing the program.

createwindowdrawballhomework

Thank you for the help!

Best Answer

for k = 1:length(x)-1
xstep = x(k+1)-x(k);
xMove(obj, xstep)
ystep = y(k+1)-y(k);
yMove(obj, ystep)
redraw
end