Matlab Get Index Of Value In Array Javascript Append W3schools