Ruby Add To Array Matlab For Loop