SWIG MATLAB Module

Disclaimer :  This needs alot of work to clean up (hmmm.
where have I heard this before???)

1.  Prerequisites :

You need a UNIX version of MATLAB 4.2 available on your machine.
You will need to set up a symbolic link to part of the MATLAB
package.  On my SGI it looks like the following :

   matlab -> /usr/local/apps/dist/matlab4.2/sgi_53 matlab

Make sure the symbolic link is named "matlab"

2.  The examples here are written in Tcl, Python and Perl5.   They 
are by no means a model for good programming, but are hopefully
enough to give you some ideas.

3.  type 'make all' to try a few examples :

What's included :
==================

1.  A simple MATLAB module for Python.   To use it, type 

	import ml

    For a somewhat more advanced module take a look at

	import matlab

    Unfortunately, this seems to be a little buggy.

2.  A numerical application that solves a heat-equation in
    an L-shaped region.  Really, this was originally a 
    homework problem for a class awhile back that I hacked
    into a SWIG module.    To run it, type "pde" which will
    spawn MATLAB and start up a simple Tcl/Tk application.
    
3.  A simple program for solving the Sine-Gordon equation.
    To run it, start Python and type :

        execfile("sinegordon.py");

    This will set up an initial condition involving two
    Soliton waves and let you watch them move as the simulation
    runs.    This example also shows how one might use
    Python to control numerical applications.   This program
    is written in C++ and you will need to hack the Makefile
    to get it to build properly as a C++ module.

4.  A Perl5 script for analzing a web-server log and producing
    a graphical display using MATLAB.  To run it, type

	webgraph logs.9604

    This script will read a log file, produce a graph, and save
    it as a GIF file.   Afterwards, you'll get an interactive
    MATLAB session.  You can now type a few commands.  Try

	contour(all)
	mesh(all)
	view(0,0)      (Shows hits by days)
	view(90,0)     (Shows hits by hour)
	etc... 

    The log file is actually generated from hits to the SWIG
    web-page for the month of april.   Actually, I've filtered
    the file down in size by a factor of 8 and masked the 
    IP addresses of all connections.  In reality, I've used this
    script to process as much as 150 Mbytes of log-files.  See
    the SWIG web-page for an example.

Known Problems
==============

When running with a virtual desktop manager such as fvwm, MATLAB
sometimes pops up a window on a weird desktop.

When compiling, you'll get a warning message about discarding a
const type.  Ignore this....




