Access Object Within Array Javascript Iterations In Matlab Which Function