plotpie.m
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:

语音合成与识别

开发平台:

Matlab

  1. function plotpie(rank)
  2. % Plotpie Plot of pie chart to show CBMR test results
  3. num1 = sum(rank==1);
  4. num2_3 = sum(2<=rank & rank<=3);
  5. num4_10 = sum(4<=rank & rank<=10);
  6. num11_20 = sum(11<=rank & rank<=20);
  7. num21_50 = sum(21<=rank & rank<=50);
  8. num51_100 = sum(51<=rank & rank<=100);
  9. others = sum(101<=rank);
  10. x = [num1 num2_3 num4_10 num11_20 num21_50 num51_100 others];
  11. x(find(x==0)) = eps;
  12. pie(x, [1 0 0 0 0 0 0]);
  13. legend('Rank=1','Rank=2~3','Rank=4~10','Rank=11~20','Rank=21~50','Rank=51~100','Rank>100')
  14. colormap cool;