File Exchange Pick of the Week

May 1st, 2009

How fast is your graphics card?

Bob's pick this week is How fast is your graphics card? by Michael Kleder

The title is brilliant. When browsing submissions do you ever wonder about its motivation? I see many submissions that explain what an M-file does but not why or when you should use it. You probably know immediately whether you care about this submission or not. Kudos to Michael for being so reader centric.

The rating comments also caught my eye. As I read through them I realized users were having a group conversation of sorts. Most readers don't leave comments (you know who you are) but take away observations all the same. It reminds me of a meeting where a few folks do all the talking but others participate by listening and learning. In person we also communicate with expressions and body language. The download numbers say something about how many others probably tried Michael's benchmark but without ratings or comments we don't know who nodded her head or furrowed his brow before moving on. I really appreciate all of you who take a minute to share your feedback. Thanks for setting a good example.

Michael's test strategy also intrigued me. Watching the measurements bounce around and settle down made it more interesting to watch. It got me thinking about what it must be doing. For example, my score ramped up to a stable value which suggested the program averages all runs so the initial delay eventually amortizes out of significance along with measurement noise. A look at the code confirmed that. But I also expected to see a while loop repeating for a minute and count the number of iterations to calculate RPM. So I was surprised to find a fixed for loop instead. You might prefer to loop until the score changed by less than some tolerance. It goes to show there are different ways to solve a problem. It's fun to learn programming tips and tricks from others as well.

Comments?


Get the MATLAB code

Published with MATLAB® 7.8

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.

  • oleg: The author has implemented skewness, kurtosis and checks answering appropriately to the critic.
  • Ashok: how to store 10 or more random number in a loop a loop for i = 1:n mean(i) = input(’enter the mean value...
  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?
  • Doug: @Lucy I think this is what you seek to move a line with the mouse in MATLAB. http://blogs.math...

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