24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 2228  |  回复: 5
本帖产生 1 个 博学EPI ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

tjbbg18

新虫 (小有名气)

[求助] MATLAB 2016a进度条对象获取和设置问题

ha1=get(hrand,'Children');
hac=get(ha1,'Children');
hapa=findall(hac,'Type','patch')
set(hapa,'FaceColor','k')
这个程序在2014a以前都可设置进度条的颜色,我换成MATLAB2016a之后,
hac=get(ha1,'Children');运行显示 0x0 empty GraphicsPlaceholder array.;
而且set也不能设置颜色了,望指教

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

FMStation

至尊木虫 (知名作家)

【答案】应助回帖

Use colorbar properties to modify the colorbar.
https://www.mathworks.com/help/matlab/ref/colorbar-properties.html
CODE:
c = colorbar;
w = c.LineWidth;
c.LineWidth = 1.5;

4楼2016-08-26 21:32:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

FMStation

至尊木虫 (知名作家)

【答案】应助回帖

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.
2楼2016-08-25 22:38:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tjbbg18

新虫 (小有名气)

引用回帖:
2楼: Originally posted by FMStation at 2016-08-25 22:38:26
https://www.mathworks.com/help/matlab/graphics_transition/why-is-the-children-property-empty-for-some-objects.html

Why Is the Children Property Empty for Some Objects?
Starting in R2014b, these o ...

这个我也查了,我是想知道在2016a中如何设置啊,可否告知
3楼2016-08-26 21:17:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tjbbg18

新虫 (小有名气)

引用回帖:
4楼: Originally posted by FMStation at 2016-08-26 21:32:38
Use colorbar properties to modify the colorbar.
https://www.mathworks.com/help/matlab/ref/colorbar-properties.html


c = colorbar;
w = c.LineWidth;
c.LineWidth = 1.5;

hrand=waitbar(0.3,'颜色')
ha1=get(hrand,'Children');
hac=get(ha1,'Children');
hapa=findall(hac,'Type','patch')
set(hapa,'FaceColor','r')
我还是不懂,就是您能否设置一下进度条的颜色hrand=waitbar(0.3,'颜色'),在2016a中,这个程序在2014a以前都可以把进度条颜色设置为红色,但是2016a中帮助文档说是colorbar但是我还是不会设置进度条啊
5楼2016-08-27 11:11:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 调剂310 +11 温柔的晚安 2026-03-25 12/600 2026-03-29 16:51 by 杨杨杨紫
[考研] 085601材料工程找调剂 +13 oatmealR 2026-03-29 14/700 2026-03-29 16:41 by 学员8dgXkO
[考研] 一志愿北京化工大学材料与化工(085600)296求调剂 +15 稻妻小编 2026-03-26 15/750 2026-03-29 15:39 by Serene1974
[考研] 一志愿南航 335分 | 0856 | GPA 4.07 | 有科研经历 +7 cccchenso 2026-03-29 7/350 2026-03-29 15:00 by 唐沐儿
[考研] 305求调剂 +8 RuiFairyrui 2026-03-28 8/400 2026-03-29 08:22 by fmesaito
[考研] 数一英一271专硕(085401)求调剂,可跨 +7 前行必有光 2026-03-28 8/400 2026-03-28 23:22 by 小木虫tim
[考研] 学硕274求调剂 +9 Li李鱼 2026-03-26 9/450 2026-03-28 21:42 by bymhappy
[考研] 085602 化工专硕 338分 求调剂 +12 路痴小琪 2026-03-27 12/600 2026-03-28 15:41 by L135790
[考研] 339求调剂,想调回江苏 +6 烤麦芽 2026-03-27 8/400 2026-03-28 10:40 by 烤麦芽
[考研] 265求调剂11408 +3 刘小鹿lu 2026-03-27 3/150 2026-03-27 20:53 by nihaoar
[考研] 一志愿上海理工能源动力(085800)310分求调剂 +3 zhangmingc 2026-03-27 4/200 2026-03-27 19:01 by 给你你注意休息
[考研] 考研调剂 +4 Sanmu-124 2026-03-26 4/200 2026-03-27 17:49 by kiokin
[考研] 085600,材料与化工321分,求调剂 +9 大馋小子 2026-03-27 9/450 2026-03-27 14:30 by mmm just
[考研] 315调剂 +4 0860求调剂 2026-03-26 5/250 2026-03-27 11:23 by wangjy2002
[考研] 调剂 +3 李嘉图·S·路 2026-03-27 3/150 2026-03-27 11:19 by wangjy2002
[论文投稿] Journal of Mechanical Science and Technology +3 Russ_ss 2026-03-25 5/250 2026-03-27 10:49 by 陆小果画大饼
[考研] 材料学硕,求调剂 6+5 糖葫芦888ll 2026-03-22 10/500 2026-03-27 08:18 by hypershenger
[考研] 281求调剂 +6 Koxui 2026-03-24 7/350 2026-03-26 15:37 by 无际的草原
[考研] 材料与化工328分调剂 +6 。,。,。,。i 2026-03-23 6/300 2026-03-25 22:30 by 418490947
[有机交流] 有机合成求助 20+3 FENGSHUJEI 2026-03-23 5/250 2026-03-24 19:31 by 88817753
信息提示
请填处理意见