zoukankan      html  css  js  c++  java
  • 有关matlab画图格式的部分代码

    %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

  • 相关阅读:
    [SCOI2010] 生成字符串
    [NOIp2010] 机器翻译
    [CF792E] Colored Balls
    JS6-函数1
    JS6-字符串
    JS6-函数
    JS
    Bootstrap
    JQuery 自己的理解
    JQuery
  • 原文地址:https://www.cnblogs.com/finallyliuyu/p/1799553.html
Copyright © 2011-2022 走看看