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.

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