Split String Javascript Array Of Functions Matlab