Push Element To Array Javascript Length Function In Matlab To Find