<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: cprintf - display formatted color text in the Command Window</title>
	<atom:link href="http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/</link>
	<description>Charting Matlab's unsupported hidden underbelly</description>
	<pubDate>Thu, 11 Mar 2010 19:24:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-7331</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Fri, 19 Feb 2010 09:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-7331</guid>
		<description>@Taufiq - MathWorks stores CPRINTF in a zip file. After downloading this file, unzip it to any folder on your Matlab path (type "path" at the Matlab Command Prompt to see the path). The zip file contains cprintf.m which should now be available for use. Type "help cprintf" to see usage explanations and examples.</description>
		<content:encoded><![CDATA[<p>@Taufiq - MathWorks stores CPRINTF in a zip file. After downloading this file, unzip it to any folder on your Matlab path (type &#8220;path&#8221; at the Matlab Command Prompt to see the path). The zip file contains cprintf.m which should now be available for use. Type &#8220;help cprintf&#8221; to see usage explanations and examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taufiq</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-7325</link>
		<dc:creator>taufiq</dc:creator>
		<pubDate>Fri, 19 Feb 2010 08:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-7325</guid>
		<description>how do u used the cprintf command?? each time i type it it says that undefined command cprintf..... i have downloaded the m file but how do i used it...im a bit of a newbies so please help...:)</description>
		<content:encoded><![CDATA[<p>how do u used the cprintf command?? each time i type it it says that undefined command cprintf&#8230;.. i have downloaded the m file but how do i used it&#8230;im a bit of a newbies so please help&#8230;:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-2999</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Wed, 30 Sep 2009 02:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-2999</guid>
		<description>Swagat - you are correct, this is indeed a bug: an edge-case caused by the fact that all the values you've entered for the style color (0.0 and 1.0) were also valid handles... I have fixed this and a few other issues - the updated CPRINTF is now online in the File Exchange (use the link contained in the article above).</description>
		<content:encoded><![CDATA[<p>Swagat - you are correct, this is indeed a bug: an edge-case caused by the fact that all the values you&#8217;ve entered for the style color (0.0 and 1.0) were also valid handles&#8230; I have fixed this and a few other issues - the updated CPRINTF is now online in the File Exchange (use the link contained in the article above).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swagat</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-2951</link>
		<dc:creator>Swagat</dc:creator>
		<pubDate>Mon, 28 Sep 2009 05:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-2951</guid>
		<description>Hello,

Thanks a lot for providing this beautiful program. But I am facing some problem with it. On my matlab (Version 7.4.0.287 (R2007a)), I am observing a strange thing. For instance, when I execute following command

&gt;&gt; cprintf([1,0.5,0],'and multi-\nline orange\n');
 and multi-
line orange

It works ... But when I execute the next command, it gives error:

&gt;&gt; cprintf([0,1.0,0],'This is in green');
Element #1:
??? Attempt to reference field of non-structure array.

Error in ==&gt; cprintf&gt;dumpElement at 335
      if ~isjava(docElement),  docElement = docElement.java;  end

Error in ==&gt; cprintf at 96
  if ishandle(style),  dumpElement(style); return;  end

Again I get error : 

&gt;&gt; cprintf([0.5,1.0,0],'This is in green');
 This is in green&gt;&gt; cprintf([0,0,1],'This is in green');
Element #1:
??? Attempt to reference field of non-structure array.

Error in ==&gt; cprintf&gt;dumpElement at 335
      if ~isjava(docElement),  docElement = docElement.java;  end

Error in ==&gt; cprintf at 96
  if ishandle(style),  dumpElement(style); return;  end


BUt this one works !!

&gt;&gt; cprintf(-[0,0,1],'This is in green');
 This is in green&gt;&gt; help printf


Can you please look into this anomaly and tell me if I am making any mistake.


Regards,
Swagat</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks a lot for providing this beautiful program. But I am facing some problem with it. On my matlab (Version 7.4.0.287 (R2007a)), I am observing a strange thing. For instance, when I execute following command</p>
<p>&gt;&gt; cprintf([1,0.5,0],&#8217;and multi-\nline orange\n&#8217;);<br />
 and multi-<br />
line orange</p>
<p>It works &#8230; But when I execute the next command, it gives error:</p>
<p>&gt;&gt; cprintf([0,1.0,0],&#8217;This is in green&#8217;);<br />
Element #1:<br />
??? Attempt to reference field of non-structure array.</p>
<p>Error in ==&gt; cprintf&gt;dumpElement at 335<br />
      if ~isjava(docElement),  docElement = docElement.java;  end</p>
<p>Error in ==&gt; cprintf at 96<br />
  if ishandle(style),  dumpElement(style); return;  end</p>
<p>Again I get error : </p>
<p>&gt;&gt; cprintf([0.5,1.0,0],&#8217;This is in green&#8217;);<br />
 This is in green&gt;&gt; cprintf([0,0,1],&#8217;This is in green&#8217;);<br />
Element #1:<br />
??? Attempt to reference field of non-structure array.</p>
<p>Error in ==&gt; cprintf&gt;dumpElement at 335<br />
      if ~isjava(docElement),  docElement = docElement.java;  end</p>
<p>Error in ==&gt; cprintf at 96<br />
  if ishandle(style),  dumpElement(style); return;  end</p>
<p>BUt this one works !!</p>
<p>&gt;&gt; cprintf(-[0,0,1],&#8217;This is in green&#8217;);<br />
 This is in green&gt;&gt; help printf</p>
<p>Can you please look into this anomaly and tell me if I am making any mistake.</p>
<p>Regards,<br />
Swagat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Changing Matlab’s Command Window colors - part 2 &#124; Undocumented Matlab</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-2227</link>
		<dc:creator>Changing Matlab’s Command Window colors - part 2 &#124; Undocumented Matlab</dc:creator>
		<pubDate>Fri, 21 Aug 2009 09:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-2227</guid>
		<description>[...] to enable display of text in any color, as well as underline, in the Command Window. See my post on cprintf for details. [...]</description>
		<content:encoded><![CDATA[<p>[...] to enable display of text in any color, as well as underline, in the Command Window. See my post on cprintf for details. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-1072</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Sat, 30 May 2009 18:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-1072</guid>
		<description>@junziyang - that's an interesting suggestion - I may indeed try this :-)</description>
		<content:encoded><![CDATA[<p>@junziyang - that&#8217;s an interesting suggestion - I may indeed try this <img src='http://undocumentedmatlab.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: junziyang</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-1061</link>
		<dc:creator>junziyang</dc:creator>
		<pubDate>Sat, 30 May 2009 07:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-1061</guid>
		<description>Thanks Yair!

I think with the same method used in your cprintf, not only the color but the font(font name/font style....) can also be readily changed. So I hope with the next version of cprintf we can also change the font of the text in the CW.

I like cprintf! Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks Yair!</p>
<p>I think with the same method used in your cprintf, not only the color but the font(font name/font style&#8230;.) can also be readily changed. So I hope with the next version of cprintf we can also change the font of the text in the CW.</p>
<p>I like cprintf! Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-745</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Mon, 18 May 2009 05:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-745</guid>
		<description>@Junziang - as far as I know you can only use LATEX in plot texts, not the editor/CW</description>
		<content:encoded><![CDATA[<p>@Junziang - as far as I know you can only use LATEX in plot texts, not the editor/CW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: junziyang</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-706</link>
		<dc:creator>junziyang</dc:creator>
		<pubDate>Sat, 16 May 2009 15:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-706</guid>
		<description>Great!
Is there anyway to control the text displayed in the Editor? For example to display Greak symbols in the comments using LATEX?</description>
		<content:encoded><![CDATA[<p>Great!<br />
Is there anyway to control the text displayed in the Editor? For example to display Greak symbols in the comments using LATEX?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aurélien Queffurust</title>
		<link>http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/comment-page-1/#comment-627</link>
		<dc:creator>Aurélien Queffurust</dc:creator>
		<pubDate>Thu, 14 May 2009 06:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=274#comment-627</guid>
		<description>WOW!!  I am sure that a lot of people will download your utility, it is such a common request from worldwide MATLAB users!
You are a guru !!</description>
		<content:encoded><![CDATA[<p>WOW!!  I am sure that a lot of people will download your utility, it is such a common request from worldwide MATLAB users!<br />
You are a guru !!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
