get the Color of a Button

1 次查看(过去 30 天)
Hey Guys,
I ve created a GUI with GUIDE, which holds 2 Buttons. Lets call them A and B. Furthermore, I ve created a Code which makes B change its color everytime u hit the Button. Now I need a Code for A, which gets the Color of B.
Thanks

采纳的回答

Image Analyst
Image Analyst 2014-8-4
Can't you simply use get()?
buttonColor = get(handles.buttonB, 'ForegroundColor');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by