%matrix横坐标featureDimension,纵坐标N_corpus
featureDimension=[100,500,1000,1500,2000,2500,3000];
N_corpus=[100,500,1000,1500,2000,2500,3000];
matrix0=load('0.txt');
matrix1=load('1.txt');
matrix2=load('2.txt');
matrix3=load('3.txt');
matrix4=load('4.txt');
avaMatrix=(matrix0+matrix1+matrix2+matrix3+matrix4)/5;
figure(1)
set(1,'position',[10,50,500,500]);
plot(featureDimension,avaMatrix(1,:),'-bo')
hold on
plot(featureDimension,avaMatrix(2,:),'-g*')
hold on
plot(featureDimension,avaMatrix(3,:),'-rs')
axis([90,3500,60,100])
text(300,95,'(注: "blue" represents corpussize=200 "green" reprensents corpussize=1000,"red" represents corpussize=2000 )')
title('特征维数对分类准确率的影响')
xlabel('特征维数')
ylabel('准确率')
hold off
figure(2)
set(2,'position',[600,50,500,500]);
axis([0,3500,10,100])
plot(featureDimension,avaMatrix(4,:),'-bo')
hold on
plot(featureDimension,avaMatrix(5,:),'-g*')
hold on
plot(featureDimension,avaMatrix(6,:),'-rs')
axis([90,3500,60,100])
text(300,95,'(注: "blue" represents corpussize=3000 "green" reprensents corpussize=4000,"red" represents corpussize=5000 )')
title('特征维数对分类准确率的影响')
xlabel('特征维数')
ylabel('准确率')
hold off