How I can find index of element in array?
I know, that number, for example, 5, is an element in array X, but I don’t know it’s index.
In Python, I can use:
X.index(5)
I realized this function, using for loop and if statement, but did Matlab doesn’t have build-in similar function?I know, that number, for example, 5, is an element in array X, but I don’t know it’s index.
In Python, I can use:
X.index(5)
I realized this function, using for loop and if statement, but did Matlab doesn’t have build-in similar function? I know, that number, for example, 5, is an element in array X, but I don’t know it’s index.
In Python, I can use:
X.index(5)
I realized this function, using for loop and if statement, but did Matlab doesn’t have build-in similar function? indexing, array, find, ismember MATLAB Answers — New Questions