matlab gui color code

Hello. On this image, for example, when I plus red and yellow then push the equal symbol, I want to orange written on the edit text panel. How can I do that ? Is there any code like str2num ?
Ads%C4%B1z.png

4 件のコメント

Adam Danz
Adam Danz 2019 年 12 月 17 日
You want the word ORANGE written to the text box or you want the text box to be colored orange? How would str2num() come into play?
Image Analyst
Image Analyst 2019 年 12 月 17 日
I think he's says that red ([r,g,b] = 1,0,0) plus yellow (1, 1, 0) should equal orange and he wants that black block to turn orange. Hopefully that black block is an axes so he can load an orange image into it.
Adam Danz
Adam Danz 2019 年 12 月 17 日
Or set the axis color to orange via h.Color = [rgb].
You'd average the rgb values, not add them, wouldn't you?
cevdet kopuz
cevdet kopuz 2019 年 12 月 19 日
編集済み: cevdet kopuz 2019 年 12 月 19 日
Hi Adam,when you press the button we want the color of the box to be orange.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2019 年 12 月 17 日

編集済み:

2019 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by