Fixed Size Array Javascript Iterations Matlab Driver