MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] How to create a relative frequency histogram by rose function (https://www.labfans.com/bbs/showthread.php?t=10682)

xiaoyaoxianshi 2010-01-29 05:02

How to create a relative frequency histogram by rose function
 
我找了个程序,用rose function 做relative frequency circular histogram. 但是,在这个程序基础上,我还想把满足一定relative frequency的bin填上颜色。如果能根据不同relative frequency填上不同的颜色,就更好了。但是,写了个程序,只能把颜色全部填满,不能根据relative frequency的不同来填充颜色。需要高人指点。谢谢啦!:)

theta = 2*pi*rand(1,50);
nbins = 30;
[tout,rout] = rose(beta,nbins);
relativefreq = rout/length(beta);
figure(3)
polar(tout,relativefreq);
[xout,yout]=pol2cart(tout, relativefreq);
set(gca,'nextplot','add');
fill(xout,yout,'g')


所有时间均为北京时间。现在的时间是 11:22

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.