Re:Matlab is oversold as a general-purpose language
by ankitml on Saturday July 27, 2013 @03:11AM
(#6112114)
try python. it is much more powerful in almost every sense. And it is not easy to write crappy code in python.
[ Parent
| on HN ]
Re:Matlab is oversold as a general-purpose language
by Gravityloss on Saturday July 27, 2013 @06:56AM
(#6112480)
Last I looked, vector and matrix handling was extremely clunky and tacked on in Python.
Re:Matlab is oversold as a general-purpose language
by Genmutant on Saturday July 27, 2013 @09:07AM
(#6112740)
You would probably use NumPy, which even has a page for people used to Matlab: http://wiki.scipy.org/NumPy_for_Matlab_Users
Re:Matlab is oversold as a general-purpose language
by pwang on Saturday July 27, 2013 @10:44AM
(#6113027)
Can you be more specific?
Re:Matlab is oversold as a general-purpose language
by hillbillyjack on Saturday July 27, 2013 @12:00PM
(#6113362)
I'm not the parent commenter but I've used matlab extensively and found Numpy clunky in comparison.
All I ever did in matlab involved matrices (usually differential equations with matrix coefficients and other things of that nature) and matrices are super easy to use in MATLAB:
A = [1 2 3
4 5 6];
or A = [1 2 3; 4 5 6];
I can input A just like that and it works, try out the python syntax: A = array([[1,2,3],[4,5,6]])
And it just goes on from there.Even if you're doing complicated operations because matrices are the essential building blocks of MATLAB it is easy to use, not so much in python.
I tried building my FEA (finite element analysis) project in python after i finished programming it in matlab it and found it to frustrating to continue.
Re:Matlab is oversold as a general-purpose language
by lake99 on Saturday July 27, 2013 @01:41PM
(#6113711)
Matlab has a terse syntax for 2D matrices. Try creating 3D, 4D and 5D matrices, and the syntax is suddenly completely different.
Re:Matlab is oversold as a general-purpose language
by singingfish on Saturday July 27, 2013 @07:27AM
(#6112546)
I've seen abominable code written in python from academics.
Re:Matlab is oversold as a general-purpose language
by ankitml on Saturday July 27, 2013 @09:55AM
(#6112874)
ya ya, its possible but hard :D
Re:Matlab is oversold as a general-purpose language
by ekimekim on Saturday July 27, 2013 @09:29AM
(#6112806)
It's very easy to write crappy code in python. And that's why I love it - it doesn't try to protect the programmer from themselves, instead it lets you do what you want (for better or worse). Compared to languages like java...