It looks like you are allocating lots of arrays in your doStep inner-loop 
function, so I'm sure you could improve it by moving the allocations out of 
the inner loop.  (In general, vectorized routines are convenient but they 
aren't the fastest way to do things.)

Reply via email to