Matlab Get Index Of Value In Array Js W3schools