File Exchange Pick of the Week

January 9th, 2009

Random Walks

Bob's pick this week is Random Walks by Mark Hoyle.

This is a really nice demo. I've heard of random walks but never had need to use them so this was educational. Seeing how the Econometrics Toolbox was value added in his solution is interesting. Mark's real world application (and sense of humor) made the problem more engaging. (I'll leave validation of Mark's simulation to more qualified individuals.)

If his published example wasn't nutritious enough, Mark totally exceeded my expectations with his visualization. Annotating the map of London subway stops with results in 3D was not just a crisp, clear way to present results. That was also clever, creative and just plain cool!

To really appreciate this submission be sure to download the code and step through it with cell mode execution. Here is a taste of just one of his several animations.

Great demo, Mark. Thanks for posting it.

Comments?.


Get the MATLAB code

Published with MATLAB® 7.8

2 Responses to “Random Walks”

  1. mark replied on :

    Hello, I need a little help, i’m creating a randon walker in a field. I really need help. it looks like you have done the same but your walker is playing on the underground map. i have created a panel from matlab gui as the field. i want my walker to walk randonly within the panel. can you help please. many thanks.

  2. Bob replied on :

    Mark, this is not realy the right place for your question. Perhaps someone on CSSM can help you.

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.