0

I am writing programs that are based on robots navigating through mazes (would involve stochastic programming).

Since it will involve heavy matrix handling (plus point for MATLAB) and simulating a robot (plus point for Prolog), I am in a dilemma between the choice of MATLAB and Prolog.

Note: I do have MATLAB at my work environment, hence cost is not an issue.

zellus
  • 9,617
  • 5
  • 39
  • 56
Karan
  • 14,824
  • 24
  • 91
  • 157
  • 4
    Your title indicates python vs. matlab while your context suggests prolog vs. matlab. I'm no expert in prolog or python, but did you mean prolog in your title as well, or is there some way to run logic programming in python like http://pyke.sourceforge.net/ – Todd Richardson Dec 26 '10 at 20:10

1 Answers1

2

As mentioned previously, I am not sure if you are looking for comparisons between MATLAB and Python or MATLAB and Prolog. I can speak to the former, at least: MATLAB provides fast linear algebraic computation and a great IDE... and that's about it. Python will cost you much fewer headaches (and dollars), and you can manage "heavy matrix handling" nearly as easily if you tack on Numpy in particular, or SciPy in general.

Also, VPython (Visual Python) is a great 3D visualization tool that uses Numpy under the hood. I developed a robot simulator using VPython; you can see screenshots and example code (for simple wall-following maze navigation) that you can check out in a recent blog post.