function [pc] = compare(F, Ftest); trainClass = [1:3]'; testClass = [1 2 3]'; %We now compute percent correct: train_ex = F'; test_ex = Ftest'; pc = nnClassFn(train_ex,test_ex,trainClass,testClass); %pc is percent correct of first nearest neighbor. %rankmat gives the top 30 matches for each test image.