|
|
changing color/thickness of text
hi all,
i want to change the color/ thickness of text. i searched web and got the following piece of code "t1 = ModelAdvisor.Text('This is a warning');
setcolor(t1, 'pass');", here pass= green color . but its simply giving nothing in the command window so please help me how to use this ?
|
|
0
|
|
|
|
Reply
|
Prayag
|
12/27/2010 10:27:05 AM |
|
On 27/12/10 4:27 AM, Prayag wrote:
> i want to change the color/ thickness of text. i searched web and got
> the following piece of code "t1 = ModelAdvisor.Text('This is a warning');
> setcolor(t1, 'pass');", here pass= green color . but its simply giving
> nothing in the command window so please help me how to use this ?
I wouldn't expect that code to give anything in the command window. You
used a semi-colon after the assignment so the value of t1 would not be
printed out, and setcolor() does not return any value so I would not
expect anything to be printed out from it.
Do you possibly mean that you are trying to change the color or
thickness of text that is printed out in the command window? If so, then
that is not so easy. Please see Yair's site http://undocumentedmatlab.com
|
|
0
|
|
|
|
Reply
|
Walter
|
12/27/2010 3:11:33 PM
|
|
"Prayag " <prayagschumi@yahoo.com> wrote in message
news:if9plo$o8c$1@fred.mathworks.com...
> hi all,
> i want to change the color/ thickness of text. i searched web and got the
> following piece of code "t1 = ModelAdvisor.Text('This is a warning');
> setcolor(t1, 'pass');", here pass= green color . but its simply giving
> nothing in the command window so please help me how to use this ?
As the name suggests, that code is used to customize the Model Explorer GUI
that is part of the Simulink ® Validation and Verification ™ product; it
will not display anything in the Command Window.
http://www.mathworks.com/help/toolbox/slvnv/ug/bqfwk33.html#brah0yh
There is no documented capability to programmatically change the color or
weight of text in the Command Window (other than throwing an error, which
will display red text, but that has other side effects.)
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|
|
0
|
|
|
|
Reply
|
Steven_Lord
|
1/3/2011 7:40:45 PM
|
|
|
2 Replies
536 Views
(page loaded in 0.097 seconds)
|
|
|
|
|
|
|
|
|