Class Type Array Javascript Iterations In Matlab Which Function