Split String To Number Array Javascript Length Function In Matlab