run
Run MATLAB script
Syntax
Description
run(
runs
the MATLAB® script specified by scriptname
)scriptname
.
Examples
Input Arguments
Tips
To update the output when running live scripts, use the Run button in the Live Editor tab instead of the
run
function. Therun
function does not update live scripts with new output.run
changes to the folder that contains the script, executes it, and resets back to the original folder. If the script itself changes folders, thenrun
does not revert to the original folder, unlessscriptname
changes to the folder in which this script resides.
Version History
Introduced before R2006a