MATLAB: How to find the row and column number in an image row I want to find the row and column number at a point in an image manually. How can I do it? Is there any options available? Best Answer Something like putting up an image and using ginput() ? If you use that then remember that X corresponds to columns and Y corresponds to row.If you have a particular value you want to find in a 2D array, then[row, col] = find(YourArray == TheValue); Related SolutionsMATLAB: Find entire rows in a matrix where a column value meets a certain condition filteredmatrix = originalmatrix(round(originalmatrix(:, 4), 4, 'significant') == 101300, :);is all that is needed. MATLAB: How to find an element in a matrix that meets a condition then call its entire row Use find with two output arguments:N = ...;[r,c] = find(DT==N);This is the easiest way, especially if you don’t know the column the value you want is in. Here, ‘r’ is the row and ‘c’ the column of every occurrence of ‘N’. Related QuestionHow to find row/column indices having all values NaNObtain row and column indices of non-zero matrix elementsHow can i put the value of find function output to other matrixSelecting elements in the matrixGetting error when used ginput
Best Answer