function [index] = getMostRepElement(db) % Given a database of elements, finds the most representative element % within the database % db: m*n matrix (m elements each having dimension n) % Output: % 1. index: index of the most representative element numElements = size(db, 1); simMatrix = zeros(numElements, numEm