Matlab Convert Strings To Array Javascript