MATLAB: How i can return the index of an array

array

hey if the user select the number of an given array , how i can found the index of this number ? example: select one of thes number [22 23 44] and the user select the number 44 , how i can return the index of 44 which is 3 ?

Best Answer

Time to read the manual, given a basic problem. Either of these tools will do what you want:
help find
help ismember