News for hackers. Stuff that matters.
Re:Matlab is oversold as a general-purpose language by pachydermic on Saturday July 27, 2013 @02:57AM (#6112096)
We don't use simulink or anything like that - we just use the typical linear algebra stuff: Markov chains, finding eigenvalues, solving linear systems, etc.
Re:Matlab is oversold as a general-purpose language by raverbashing on Saturday July 27, 2013 @10:38AM (#6113007)
And that's the thing with Matlab, it does the math part really well

Maybe R and Numpy are getting better, but try to invert a matrix, find and eigenvalue, find the solution to a polynomial, fit an equation, etc Not to mention the most advanced things outside Matlab

Re:Matlab is oversold as a general-purpose language by kyzyl on Saturday July 27, 2013 @01:21PM (#6113633)
Well, matlab--ahem, matrix lab--does certain bits of math quite well. But I would say that R/numpy are most than just 'getting better'. They literally do every thing you just mentioned, and typically their implementations go beyond matlab's.

Where I've found matlab to still be ahead is in the area of domain specific engineering. For example, if you want to manually pulse code a signal using some specific modulation scheme, matlab has a tool for just that. In python you still have to manually write a bit, interface it to the fitting routine, and convolve it across your signal.

Re:Matlab is oversold as a general-purpose language by kazagistar on Saturday July 27, 2013 @12:12PM (#6113410)
Re:Matlab is oversold as a general-purpose language by raverbashing on Saturday July 27, 2013 @01:16PM (#6113624)
Yes, as I said, it's getting better.

Simulink is a whole different world inside Matlab as well

Here's something that doesn't look like it's covered by NumPy 100% http://www.mathworks.de/de/help/signal/ug/iir-filter-design....

Re:Matlab is oversold as a general-purpose language by kyzyl on Saturday July 27, 2013 @09:47PM (#6115244)
> Here's something

Yeah that's exactly the kind of stuff I meant when I was talking about pulse coding and such. Although the last time I had to do some filtering stuff I did manage to use python+scipy, but yeah it hasn't progressed as far as matlab in a lot of those niche engineering areas yet.

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.
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...