Environmental Engineering Reference
In-Depth Information
Fig. 2.6 File submenu entries for M-files and other files
Fig. 2.7 MATLAB
editor; main menu entries of the graphical user interface
®
' entries in the 'File' menu of the editor, or the
corresponding button, to save the file under the name 'example.m' . Return to the
command window and type:
Use the 'Save' or 'Save as
...
A graph showing concentrations decreasing with time appears. 5 All commands
of the 'example.m' file are executed, when example is used as command. A bundle
of graphs can now be plotted in the same figure without much typing work:
5
Depending on the specific installation and organization on the computer, the user could have a
problem here, if MATLAB
does not find the 'example.m' file. The user should store the file in a
directory, which is included in the MATLAB
®
path list. Use the command path , to see the current
path list of the installation. In case of problems store the file in another directory or use the addpath
command, to add another directory in the path list. There may also be a problem, if the user
chooses an M-file name that already exists within the directories of the path list. Use the which
command in order to check, if your stored version of the file is the most nearby version in the
MATLAB
®
system on your machine!
®
Search WWH ::




Custom Search