function error = q1(Ntr,Nte,k);
% N represents no. of dataset

[datatr, labelstr] = loadDigits(Ntr, 'train');
[datate, labelste] = loadDigits(Nte, 'test');

knnans = knnclassify(datate',datatr',labelstr',k);
error = size(find(knnans - labelste'),1)