Table of Contents

Scientific Programming

Speed Testing

Matlab

Python

Another great option is the scientific toolboxes in Python.

Vanilla

Ranking
# By Peter Norvig
ranks = ['--23456789TJQKA'.index(r) for r,c in hand] #outputs index of char...nice

Numpy

Appending
list = []
for i in range(10):
    list.append([i,i+1])
numpy.concatenate(tuple(self.dict[key]), axis=0)

Fast File Importing

#Gather all the elements returning from the generator
big_list = list(the_generator)

The Verdict

I use matlab for offline analysis and python for on the fly processing <and GUIs, and end products>.
Matlab is more complete but heavier.
Python is open source and faster.

I use both, for different purposes.