Push Elements Into Array Javascript Length Function In Matlab