MATLAB: Comparing Contents of Two Matrices comparing two matrices How to determine if all elements of A are present in B, in the simplest way? A = [ 1 2 3 ]; B = [ 1 2 3 4 5 6 7 8 9 10 ]; Best Answer all(ismember(A, B)) Related SolutionsMATLAB: Comparing two matrices and obtain the un-repeated rows A(~ismember(A, B, 'rows'), :) MATLAB: Compare two matrices result = A==B; Related QuestionComparing two matrix for similar matrixHelp comparing two matricesRelationship between 2 matrixHelp comparing two matrices
Best Answer