Essay On Load Maindata

Essay About 100-Count And Random Number
Pages • 1

Pattern Recognition Essay Preview: Pattern Recognition Report this essay load(usps_main,-mat); %load maindata %generate random number from 1 to 500 random= ceil(rand(1,100) * 500); %make data of 200 samples matrix= zeros(200,256); for i=1:1:100 a=getonedigit(3,random(i),maindata); c=getonedigit(8,random(i),maindata); b=a(1:256); d=c(1:256); matrix(i,:)=b; matrix(i+100,:)=d; %make the labels matrix labels= zeros(200,1); labels(1:100)=3; labels(101:200)=8; count2=zeros(1,20); x=zeros(1,256); for k=1:1:20 for i=1:1:200 x=matrix(i,:); y=knearest(k,x,matrix,labels); if(y~=labels(i)).

Weve found 1 essay examples on Load Maindata