Push Element To Array Javascript Length Function Matlab