As well, for a lot of purposes, you can use Octave (also open source) instead of matlab, however there are some things octave doesn't do as easily, or the same way as matlab.
I personally use R with R-Studio. On another forum I found a workable way to connect Metatrader 4 v500+ and R-3.0.1. which I am now doing under Ubuntu 12.10/wine
[Edit - wrong R version]
[Edit - if interested google 'MT4R' for the MT4 <-> R connection mentioned above. It's the first result a.t.m.]