フィルターのクリア

We want to express the ball bounce in two dimensions.

1 回表示 (過去 30 日間)
종은 정
종은 정 2021 年 11 月 28 日
回答済み: Image Analyst 2021 年 11 月 28 日
We even made a graph representing projections.The next goal is to express ball bouncing. Among the attached images, the image with the GUI is the program we created. In the program we made, the ball doesn't bounce. Like the second image added, I want the ball to bounce in the program we made.

回答 (1 件)

Image Analyst
Image Analyst 2021 年 11 月 28 日
To animate your plot you can plot one point at a time and then put pause(0.1) in to slow it down.
for k = 1 : length(x)
plot(x(k), y(k), 'bo', 'MarkerSize', 20);
drawnow;
pause(0.2); % Use a bigger number to slow it down.
end

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by