File Exchange

image thumbnail

3d Clock with geartrain

version (8.42 KB) by Michael Agostini
A clock built using a general 3d rendering engine which supports shafts, gears, and clock-hands.


Updated 01 Sep 2016

View Version History

View License

Editor's Note: This file was a File Exchange Pick of the Week

This is a clock rendered in 3D. The file 'myclock.m' is code for a rendering generic 3D image made up of the basic objects: hands, shafts, and gears. It wouldn't necessarily have to be a gear train driven clock. The file 'clockFeatures.m' defines all the data required to create my clock. Eventually I would like to have my 3D data read from an xml file instead of from an m-file. There is placeholder code in myclock.m for this future functionality.

Cite As

Michael Agostini (2021). 3d Clock with geartrain (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (21)

Stephen Cobeldick

I like this :)

Stephen Cobeldick

Provides hours, minutes and seconds of amusement... Well thought out and executed code with plenty of explanations throughout, although sometimes a bit too much whitespace for my taste. The only thing it is missing is the pendulum and escapement!


good for the gears

Mr Smart


Such a beautiful, cute 3D model



Luigi Giaccari

Very Very Very Nice

RAAED sadoon


Saima Riaz

gr8 .... work... keep it up...

Shad Harris

Gears all to ratio and functional. Nice work.

cu zn


timeport yaknov

Dev Sagar

Beautiful but useless

prasantakumar majumdar

Haroon Janjua

Good Work Yar.........its cool

Roberto Matiasich

Jahanzeb Rajput

Nick Cheilakos

Excellent work.

Jiro Doke

Very nice. It gave me insights to creating complex objects using SURF (as opposed to PATCH), thus speeding up the animation updates. I was able to get it to work on R13 with minor modifications.

Michael Agostini

The *.exe and *.ctf files are for stand alone execution. You don't need them to run the application in MATLAB. Stand alone execution requires that you have the MATLAB Component Runtime (MCR) installed, too.

Robert Young

What are the .exe and .ctf files for? It works fine without them.

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: GEAR3D

Community Treasure Hunt

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

Start Hunting!