plotpie.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- function plotpie(rank)
- % Plotpie Plot of pie chart to show CBMR test results
- num1 = sum(rank==1);
- num2_3 = sum(2<=rank & rank<=3);
- num4_10 = sum(4<=rank & rank<=10);
- num11_20 = sum(11<=rank & rank<=20);
- num21_50 = sum(21<=rank & rank<=50);
- num51_100 = sum(51<=rank & rank<=100);
- others = sum(101<=rank);
- x = [num1 num2_3 num4_10 num11_20 num21_50 num51_100 others];
- x(find(x==0)) = eps;
- pie(x, [1 0 0 0 0 0 0]);
- legend('Rank=1','Rank=2~3','Rank=4~10','Rank=11~20','Rank=21~50','Rank=51~100','Rank>100')
- colormap cool;