Gauss to Matlab Via Perl
GTOML
(Newest Version 1.02) Gauss to Matlab Perl script (text file) for converting a
Gauss script or procedure (with one main function, and possibly several
sub-functions) to a Matlab M-file. This version includes several bug fixes
and extensions.
GTOMLMF
(Newest Version 1.02) Gauss to Matlab Perl script (text file) for converting a file
which contains multiple Gauss functions (with perhaps a common global
declaration file) to several individual M-files, named after each function.
This version includes several bug fixes and extensions.
Get Perl Download a free version of
Perl for Windows 95 or NT. If you
use a Unix machine Perl is most likely already installed. If not, it can be
obtained from this site as well.
What GTOML and GTOMLMF Currently Do
- Scan the Gauss source code for key information and store it into
temporary variables. The initial scan will look for proc( ) statements,
retp() statements, any #include file, and the "new" command.
- Setup equivalent Matlab functions based on the information from the
initial scan.
- Create an appropriate header file for main functions, which contains
special notes relating to the translation. These notes include identifying
function arguments which must be passed as strings, the name of the new
Matlab declaration file, and directions for integrating the function into
Matlab's help utility
- Seperate comments from the code, and identify line continuations.
- Translates code fragments into Matlab, using several search and
replace arguments, and a large section which deals with simple as well as
complicated matrix concatinations.
- Here
is a detailed list of what exactly is currently translated.
Limitations: What GTOML and GTOMLMF
Currently Do not do
- This is the first release of this program, and it only seeks to translate
the most basic Gauss syntax to Matlab. Not all functions and notation are
currently supported.
- Possible problems can occur if Gauss source code is broken up over
more than one line at strange places. Try to avoid concatinating strings
over more than one line, or having function names which are seperated by
a line return.
- Currently has support (when combined with these
M-files
for binary Gauss data files. Does not support modules such as CO, MAXLIK, or OPTMUM.
Has very limited support for graphics functions.
[Main Gauss to
Matlab Page|
Cameron Rookley's Home Page|
Gauss Archive of Mainly Finance Code]
Revised -- 1/1/2003
URL:
http://www.cameronrookley/gtoml/gtoml.html