MATLAB: Find the index value index I have a an array.I need to find its index value.How can i do that? Best Answer >> array_data=2:3:30array_data = 2 5 8 11 14 17 20 23 26 29Case 1: I assumed you are looking for index value of specific element in the array, say 17idx=find(array_data==17)Case 2: for all array Elementsidx=1:length(array_data)Hope it helps! Related SolutionsMATLAB: Label2rgb and rgb2label rgb2ind() . If you did not pass a colormap into label2rgb then "the default value is 'jet'." so you should pass that into rgb2ind() MATLAB: Labeled rows and column in a matrix Use table instead. Related QuestionReturn index of biggest element in a row-matrix.
Best Answer