Porting researchy Matlab code to optimized Fortran or C could potentially give you the same results as throwing more hardware at the problem, but cheaper and probably faster.
But unless the optimizations change the complexity, you're still going to be very limited: the constant factors may let you go from 1 cell in Matlab to 100 cells in C on the same hardware, but that's still just 100 cells and now you're stuck.