Does anyone in this group know the pros and cons of Matlab versus APL?
My understanding is that Matlab was originally created by some APL fans
because there was no APL available for the Mac at the time. I've taken a
Matlab course, and we have it at work. I never use it, because I have
APL. It is very polished, has lots of specialized add-on pakcages, and
is expensive.
Doug White
The guys I've known that use MatLab are usually involved with the analog
aspects of peripherals, such as servo and channel type stuff. One of the
"pros" is the ability to enter equations, and MatLab will solve them
for you, produce a graph, and/or produce a complex number graph.
I've never used it myself, just watch some of my co-workers using it.
Some of the equation, curve fitting, and similar stuff seems pretty
advanced.
Regarding price, I've browsed for APL environments and the ones I found
were around $1500 USA. Then again, MatLab for non-students is $1900, and
there seem to be thousands in add-on components for MatLab. I don't plan
on buying either anytime soon.
Student version of MatLab is $99 (USA), and includes some add-ons, and
the add-on's are $59 (USA). Since I would never be a commercial user of
the software, it would be cheaper to sign up for classes at a local
college.
Try http://apl2c.com
It's free.
>>>[... deleted ...]
>
> Regarding price, I've browsed for APL environments and the ones I
> found were around $1500 USA. [... deleted ...]
For personal non-commercial use Dyalog is around USD100.
See http://www.vector.org.uk/?area=dnld&page=content/interpreters
for APL interpreters. Some are available free for personal or
educational use,
such as APLX and SAX on Linux.
Dyalog isn't free, but at about USD100 for personal use, offers its
latest
version complete with native class-instance support, scripting tools
and
advanced graphics.
Stephen Taylor
s...@dyalog.com
I don't think so. I have the original (free) fortran version, written by
cleve as an interactive interface to eispack,linpack. It's short for
matrix laboratory. Of course it has grown tremendously since then.
> I've taken a
> Matlab course, and we have it at work. I never use it, because I have
> APL. It is very polished, has lots of specialized add-on pakcages, and
> is expensive.
It is expensive, but not for students, hence is now essential for
engineering work, especially in research, controls. The newsgroup is
enormous.
Matlab has I think taken over the scientific/engineering interpreter
market. Key reasons are
- cheap for students
- trivial to code/understand (though many write loops where non-looping
solutions are more efficient, much like apl)
- has a nice built-in plot facility
- uses ascii (but allows latex commands on graphs)
- has solid numerical analysis (e.g. going back to linpack/eispack, but
now lapack)
- trivially extensible -- if you type
foo(x)
it looks for a file somewhere in your matlab path, either a compiled
function (foo.mex) or ascii text function/script (foo.m). This
means it is trivial to extend matlab with your own functions, and in
fact also to share with your friends/coworkers. There are extensive
libraries of all kinds of stuff on the mathworks web site.
The underlying language used to be rather hokey (only matrix objects).
But now has "boxed" objects (cell arrays), structures (analogous to c),
overloading, anonymous fns, and all kinds of data types. The syntax is
still a bit ugly, but very practical. It also has sets of toolboxes,
including simulink, a graphical tool for building system time-domain
simulations.
I think APL could have taken this spot (I used it for this in college),
but went towards finance rather than science, didn't have builtin
plotting, isn't as easily extensible (have to load libraries) and no
easy way to share functions (largely due to charset troubles).
Sam Sirlin
I save my library functions as "groups" i.e. *.ATF files. I also have a
function called "need" which can be called recursively from within a
function to load one or more functions from one or more groups. e.g.
'Days' 'DR2J Sodano GPX_tracks' 'Pyth Rnd'need'date' 'gps' 'math' 'ed'
This has at least three important features:
Only one copy of a function is needed in the whole system.
Thus easier for maintenance.
Callable from within a function.
*.ATFs are smaller than the same stuff in WSs.
An ATF is a text file although it does contain APL characters. However
I've never had a problem e-mailing them .ZIP'd.
Ted
Sam's description of MATLAB's success in the college/engineering
environment agrees well with my experience at San Jose State
University's College of Engineering. The language itself seems
inferior to APL but there's a huge collection of math functions and
tools for e.g. signal-processing systems simulations and for
statistics EASILY available. Mathworks has people out giving seminars
and providing strong support to users.
Bill Koko noted in 1998 at Minnowbrook and told me personally in
Scranton in 1999 that his colleagues at Bucknell (?) were using MATLAB
instead of APL because of the rich assortment of math functions
available with MATLAB. Curtis
> Bill Koko noted in 1998 at Minnowbrook and told me personally in
> Scranton in 1999 that his colleagues at Bucknell (?) were using MATLAB
> instead of APL because of the rich assortment of math functions
> available with MATLAB. Curtis
BTW there were originally (late 80's) some comercial competitors to
matlab: control-c and matrix-x (xmath) that were similar but not as
successful (not sure if they're still around). I think matlab "won" out
on price (for students) and extensibility.
There are some good free "competitors" that fill the same niche, octave
scilab, and R. Wikipedia has a pretty good list (but doesn't include APL...)
http://en.wikipedia.org/wiki/List_of_numerical_analysis_software
>
> Dyalog isn't free, but at about USD100 for personal use, offers its
> latest > version complete with native class-instance support, scripting
> tools and advanced graphics.
And still no complex numbers 25-30 yrs after APL2. :-(
David Dooner
--
Message posted using http://www.talkaboutprogramming.com/group/comp.lang.apl/
More information at http://www.talkaboutprogramming.com/faq.html
Welllll.....
Some of us really think it is the best APL.
Some think that it is not APL because it is missing the greek signs.
I started to use J especially because it was not giving me the
problems the greek signs were giving me with other APLs.
There are lot of reasons to use J and those of us who follow the J
forums see it has a growing number of followers too.
Interesting question . Interesting answers . But I sent the following
to my niece who is being exposed to Matlab ( and VB and C++ ) in her
applied math classes at Boulder :
> [ The ] comparisons but don't get into nitty-gritty of difference between the languages .
>
> My friend Devon McCormick said it does not have operators ( adverbs ) which take functions ( verbs ) as arguments .
>
> A sentence I typed this morning in K.CoSy to count the months between March 2006 and this month is :
>
> - -/ 12 _sv' ( 06 03 ; 07 10 )
> 19
> ...
> What would be the equivalent MatLab ?
Loren Shure from MatLab sat next to me on the "Thinking in Arrays"
panel at APL2007 . Afterwards she indicated that at least Matlab
understood the importance of boolean vectors and didn't have the hang
up about TRUE being different than 1 which Wolfram seems to .
What are the linguistic differences ?