File Exchange Pick of the Week

June 4th, 2007

Clocks in MATLAB

I recently changed jobs and offices within the MathWorks and am now sitting within the Engineering Devlopment Group (the friendly people that answer your tech support questions on the phone or by e-mail). One of the first challenges the people joining this group have when coming to The MathWorks is to write a clock in MATLAB. This is a good chance for them to show-off and refine their MATLAB skills. I recently saw people “ooohing” and “aaahing” in one of the offices while looking at Brendan’s clock. I have to say that there is an ever increasing level of sophistication in these clocks since I made mine six years ago. Lets take a look at mine:

dougClock.JPG

It is no match for Brendan’s. Mine just flipped the card images in place, but his flips them through the air!

brendanClock.JPG

I take solace in the fact that he used HgTransform to do this fancy animation, and that functionality did not exist when I started. When I first came to work here, I had to walk two miles through the snow, uphill, both ways!

One Response to “Clocks in MATLAB”

  1. shakeham replied on :

    It’s hard to believe you guys can do these things using Matlab.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.