s-news
[Top] [All Lists]

Compare Splus and Matlab: Results

To: s-news@lists.biostat.wustl.edu
Subject: Compare Splus and Matlab: Results
From: Wim Kimmerer <kimmerer@sfsu.edu>
Date: Tue, 22 Apr 2003 09:40:59 -0700
I asked about a comparison between Splus and Matlab.  Here are the results:

Opinions (mostly from people who use both):

Matlab is much more intuitive to learn and way more flexible.

They do different things and good advice to students would be to learn both
for their appropriate uses: Splus for data analysis, Matlab for numerical
simulation. You can do some simulation in Splus (less flexible than Matlab
and it's so slow I wouldn't recommend it for routine numerical work) and you
can do some data analysis in Matlab (but its way less comprehensive,
sophisticated or convenient, for the most part). In summary, Splus for
statistical modeling, Matlab for numerical modeling.

Splus for stats and data visualization, Matlab for linear algebra,
computation, and simulation.  Matlab often requires add-in modules, but
there is a lot of freeware out there.

For anything statistical, splus is clearly the right choice.  For
linear algebra, they are more or less equal.  For graphics, matlab is
generally better, especially for colorfill contouring with curvilinear
coordinates, but I wouldn't want to do without splus's trellis
graphics.  And splus automatically labels graphs, which matlab can't do.

In Splus all objects are immediately
written to disk and memory is freed up, so you don't have to
explicitly manage the memory as you would when using matlab.  And if
you crash, nothing is lost.  Also, matlab doesn't
have anything like the ... argument for functions.  Or "computing on
the language".

S-plus is weak at working with differential equations models and PDE
support is nil.  S-plus handles statistical models much much better. For
example, implementing blue book models in MATLAB is a chore, whereas, it is
essentially built-in S-plus. Graphics are great in both programs but a bit
easier to do in MATLAB.

The main difference
is functionality and speed of looping. S-PLUS has much more statistical
functionality than Matlab and is a better environment for creating
statistical functions because it has a richer language. Matlab is easier to
learn and is much faster for looping and better for simulation
experiments.

The above are variously paraphrased, edited, and lifted. Thanks to Chris
Howden, Brett Melbourne, Greg Rodd, Carlisle Thacker, "OAL", and Eric Zivot.

 Comparisons:

Courtesy of Eric Zivot, a speed comparison with Splus, Matlab, R, and a
bunch of matrix languages can be found at 

http://www.scientificweb.de/testreport/testanw.html

The bottom line is that Splus is much slower at several tasks, although
these involve looping and if that were avoided the difference would
probably shrink.  However, this comparison does not consider capabilities,
ease of learning/use, or effort required to produce a given result.





======================
Dr. Wim Kimmerer
Romberg Tiburon Center
San Francisco State University
3152 Paradise Drive
Tiburon CA 94920
Ph. (415) 338-3515
Fax (415) 435-7120
http://online.sfsu.edu/~kimmerer/

<Prev in Thread] Current Thread [Next in Thread>
  • Compare Splus and Matlab: Results, Wim Kimmerer <=