MATLAB: Reduce rows of a due to b matricesreduction Hi everyone, I have 2 matices, A and B a = [0 1 0 0 1 1 1 0 1 1 1 1]; b =[1 1 1 0 1 1]; Is it possible to reduce a using b? Best Answer ix = ismember(a,b,'rows');a(ix,:) % gives you the rows in a which is common to b and ~ix vice versa Related SolutionsMATLAB: How to find which rows are identical in a matrix >> A = [1 1 1 1; 1 0 0 1; 1 0 0 1; 1 0 0 0];>> [~,B,C] = unique(A,'rows');>> A(B(accumarray(C,1)>1),:)ans = 1 0 0 1 MATLAB: Error due to function application The first line of your file named "image_processing_project.m" must befunction image_processing_project Related QuestionHow to count the number of consecutive identical element of each row in a binary matrixEliminating rows that are exact duplicates (unique eliminates some desired combinations!)How to compute frequency of rows for submatricesArduino Due error in Matlab
Best Answer