Installing GVML
To install GVML, you need to do the following two steps:
- add the directory containing the m-files, for example,
/usr/your_name/mfiles/, to the MATLABPATH environment variable;
- customize the GVML m-files for your UNIX system.
These two steps are explained in detail below.
1. Setting MATLABPATH
- (a) Directly from the Matlab command line, retrieve the current path
and append the path of the directory containing the m-files
p = path;
path(p, '/usr/your_name/mfiles');
or
- (b) Using the UNIX C-shell, add the following line to your .cshrc file in your
home directory /usr/your_name
setenv MATLABPATH /usr/your_name/mfiles/
or
- (c) Using the Bourne shell, add the following lines to your .profile file in your
home directory /usr/your_name
MATLABPATH = /usr/your_name/mfiles/
export MATLABPATH
For more details, see the Matlab Reference Guide or the Matlab User's Guide.
2. Customizing GVML
Edit the file geomview.m and make the following changes:
- (a) set the path for a temporary file in your system
- (b) set the remove file command for your system
tmpfile = '/tmp/matlabdata.oogl';
remove = '/bin/rm -f';
Next:Using GVML