return index of element prove a condition in array matlab code example Example: return index of element prove a condition in array matlab index=find(cond);