MATLAB 2016a進(jìn)度條對(duì)象獲取和設(shè)置問題
ha1=get(hrand,'Children');
hac=get(ha1,'Children');
hapa=findall(hac,'Type','patch')
set(hapa,'FaceColor','k')
這個(gè)程序在2014a以前都可設(shè)置進(jìn)度條的顏色,我換成MATLAB2016a之后,
hac=get(ha1,'Children');運(yùn)行顯示 0x0 empty GraphicsPlaceholder array.;
而且set也不能設(shè)置顏色了,望指教
返回小木蟲查看更多
今日熱帖
京公網(wǎng)安備 11010802022153號(hào)
https://www.mathworks.com/help/m ... r-some-objects.html
Why Is the Children Property Empty for Some Objects?
Starting in R2014b, these objects do not contain handles to underlying objects in their Children properties. To customize the graph, use properties of the actual object. This table lists the affected objects.
這個(gè)我也查了,我是想知道在2016a中如何設(shè)置啊,可否告知
Use colorbar properties to modify the colorbar.
https://www.mathworks.com/help/matlab/ref/colorbar-properties.html
hrand=waitbar(0.3,'顏色')
ha1=get(hrand,'Children');
hac=get(ha1,'Children');
hapa=findall(hac,'Type','patch')
set(hapa,'FaceColor','r')
我還是不懂,就是您能否設(shè)置一下進(jìn)度條的顏色hrand=waitbar(0.3,'顏色'),在2016a中,這個(gè)程序在2014a以前都可以把進(jìn)度條顏色設(shè)置為紅色,但是2016a中幫助文檔說是colorbar但是我還是不會(huì)設(shè)置進(jìn)度條啊
https://stackoverflow.com/questions/36352171/change-width-of-the-bar-figure-at-waitbar-matlab-r2015a
,