I want to make a simulation of the hands of a clock

6 ビュー (過去 30 日間)
Yulissa Gallardo
Yulissa Gallardo 2022 年 6 月 30 日
コメント済み: Adam Danz 2022 年 6 月 30 日
I would like to make 3 diferent lines (hands of the clock: minutes, seconds and hours) that rotates in clockwise, but I'm having troubles, the coordinates of my center are moving and I can't add the 3 vectors together,
  1 件のコメント
Adam Danz
Adam Danz 2022 年 6 月 30 日
I suggest using polar axes.
Here's an example from the 2021 Mini Hack competition however the code is very sloppy due to the character limitation imposed by the competition so you should definitely clean it up. Also, use polarplot rather than plot.
Then you'll need to set up a timer object to change the position of the arms every second.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeClocks and Timers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by