File Exchange Pick of the Week

October 2nd, 2007

Cool feature: Run configurations

This cool feature will be useful to many MATLAB users that write functions and want an easy way to test them in multiple configurations.

I like to hit F5 to save and run a script, but in the past if you had a function, you could not do this since you usually need to give inputs to a function. Run configurations allow you to run a little script to feed the function inputs. Want to test your new function with a few small data sets easily? Normally you might make a script to do that, and then have to write a new one for when you want to test against the full data set. With run configurations you can easily change between the two and run with a click of F5.

Video Content

Find the files here.

Other videos have been gathered here:
http://blogs.mathworks.com/pick/category/video/

Other cool feature posts have been gathered here:
http://blogs.mathworks.com/pick/category/cool-feature/

3 Responses to “Cool feature: Run configurations”

  1. Ken Orr replied on :

    Great video Doug!

    You can check out the debut blog entry for this feature here:

    http://blogs.mathworks.com/desktop/2007/09/17/running-functions-with-input-from-the-editor-in-r2007b/

    -Ken

  2. Paul replied on :

    Dear Doug

    I have always written script files to drive my functions if I want to test them. I could then easily copy both these functions and script files from one PC to another and continue working on the functions. When using the “Run Configurations” method, I would like to know where this configuration file is stored so that I can copy it together with my function files from one PC to another.

    Regards
    Paul

  3. Ken Orr replied on :

    Hi Paul,

    Your absolutely right! Configurations should be more visible than they are now. In fact, we’re actively working on a solution to this, which would deliver the visibility and transportability you desire.

    I can’t promise when it will be released, but I can tell you it is my main focus right now!

    -Ken

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.