Mario Krenn
Mario Krenn

Reputation: 223

MATLAB: Background color of Text in GUI

I want to use GUI (or directly the Command Windows) in MATLAB, which displays text. The text contain a few highlighted parts (which are changed during runtime), like this:

enter image description here

Is there any way I can do something liek that with MATLAB?

Upvotes: 0

Views: 152

Answers (1)

matlabgui
matlabgui

Reputation: 5672

For command window you could try cprintf.

For displaying in a GUI you can use html formatting - going down this route you may find str2html useful.

Upvotes: 1

Related Questions