How to change the color of a lamp component when a button is pressed in AppDesigner ?
35 ビュー (過去 30 日間)
古いコメントを表示
I have tried using the following command but it did not work:
app.mylamp.Color = [0.3010 0.7450 0.9330]
Thanks
0 件のコメント
回答 (1 件)
Kevin Chng
2019 年 7 月 4 日
It should be working. I guess you miss out something, i try to do the full workflow here : I hope it helps you
1) Create button and lamp
2) Create callback function for button
3) Inside the callback function type
4) Ensure app.Lamp is the component's name
Let me know if you still cant do it.
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!