MATLAB: Count count I have g(45×2)and I(45×2) i want to compare each and every row of g with I(45×2) and count them are equal Best Answer G = randi(3, 45, 2);I = randi(3, 45, 2);sum(all(G == I, 2)) Related SolutionsMATLAB: Count Relationships between two columns maxdata = max(max(Yourdata(:,1:2)));counts = accumarray(YourData(:,1:2), 1, [maxdata, maxdata]);Now counts(J,K) is the number of times the number J appeared in the first column with K in the second column of the same row. MATLAB: Help me, not = 0 http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Related QuestionHow to count the number of occurrences of pixel intensities in an image without using for loopFunction ‘eq’Creating one histogram for a multiple DICOM imagesFuzzy image histogram equalizationError using msgboxTextscan an url fileSwap rows and columns of a matrix
Best Answer