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.

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