MATLAB: Match row column of matrix row column If I have one matrix 1 232 543 764 675 23 The other matrix 43 If there is way to get If Iwant a matrix 4 673 76 Best Answer A = [1 23 2 54 3 76 4 67 5 23]; B = [4;3]; result = A(ismember(A(:, 1), B), :) %keep the rows of A whose 1st column is a member of B Related SolutionsMATLAB: Selection of rows in a matrix A = [36 13 9 21 23 32 35 5 3 43]B = A([1,3,5],:) MATLAB: Need to match Data B(A(:,1),2) = A(:,2) Related QuestionHow to generate a matrix containing 35 rows and 3 columnsHow to find the column values for a given rowMatch row and columnFinding values corresponding to row and column index of a matrixMatrix mis-matchRow and Column permutation of a matrixMatch with ismember function
Best Answer