Fixed Size Array Javascript Iterations Matlab Simulink