Menu

#245 Please add a run() function

open
nobody
None
5
2012-03-08
2012-03-08
Anonymous
No

MATLAB provides a function run(scriptname) for running scripts whose path is specified by a variable (see: http://www.mathworks.co.uk/help/techdoc/ref/run.html ). This is useful, for example, when you want to iterate over the FreeMat/MATLAB scripts in a directory and execute all/some of them. I often need to do things like this when I write programs in another language that generate some data that I want to plot/analyse in MATLAB. The most convenient way to pass this data to MATLAB is often to write code in the other language that generates MATLAB scripts with the data stored in matrices/vectors, as this has the benefit of the data being both MATLAB-readable and human-readable. Please add support for run().

Discussion


Log in to post a comment.