result = find(X==5); matlab code example Example: matlab find in python import numpy numpy.argwhere() #find() in matlab