Text-only
Table of Contents (
frame
/
no frame
)
(20) Script M-Files
MATLAB Script M-Files
Set of MATLAB command in an ASCII text file
does not have inputs and outputs
have a .m extension
called by typing the name (without the .m extension)
startup.m
script MATLAB executes when it starts up
Useful commands in script file programming
pause
suspend execution - press any key to continue
keyboard
pause and return control to the command line
useful for debugging
can examine or change variables
type return to continue
input
prompt user for input
r= input('Enter the number of time steps.')
Script_M-Files.src last modified Sep 29, 2009
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College