Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这似乎是一个简单的问题,但我无法谷歌解决方案。我有一个我制作uicontrol的风格'text'。我可以更改背景颜色,但我无法更改我拥有的文本的颜色。这是怎么做到的?
uicontrol
'text'
你可以像下面的代码那样做:
hh=uicontrol('Style','text','Position', [7 20 95 20],'String','Your Text....') set(hh,'ForegroundColor','blue');
注意:修改文本的位置( [7 20 95 20] )以便出现在您想要的位置