Doug’s MATLAB Video Tutorials

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


Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

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