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).


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

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

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