Node Js Array Functions Matlab