<?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: Command Window text manipulation	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/command-window-text-manipulation/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=command-window-text-manipulation</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 12 Dec 2013 18:30:09 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-303935</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 12 Dec 2013 18:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-303935</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-303927&quot;&gt;kasim&lt;/a&gt;.

@Kasim - it would have been nice if you included a reference to this webpage in your utility&#039;s description. After all, it&#039;s based on the content of this webpage (specifically, the \b trick). It is not very polite to use someone&#039;s work without acknowledging it; to then go back to that source and post a link to your work only increases the apparent impoliteness...

The utility itself does indeed seem useful.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-303927">kasim</a>.</p>
<p>@Kasim &#8211; it would have been nice if you included a reference to this webpage in your utility&#8217;s description. After all, it&#8217;s based on the content of this webpage (specifically, the \b trick). It is not very polite to use someone&#8217;s work without acknowledging it; to then go back to that source and post a link to your work only increases the apparent impoliteness&#8230;</p>
<p>The utility itself does indeed seem useful.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kasim		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-303927</link>

		<dc:creator><![CDATA[kasim]]></dc:creator>
		<pubDate>Thu, 12 Dec 2013 18:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-303927</guid>

					<description><![CDATA[I use &#039;dispstat&#039; function just for this purpose. It can update the previous output which is a missing function of default &#039;disp&#039;. Very simple to use. It can be downloaded from here:

&lt;a target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/44673&quot; rel=&quot;nofollow&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/44673&lt;/a&gt;

***Sample usage: 
&lt;pre lang=&quot;matlab&quot;&gt;
dispstat(&#039;&#039;,&#039;init&#039;); % One time only initialization 
dispstat(sprintf(&#039;Begining the process...&#039;),&#039;keepthis&#039;,&#039;timestamp&#039;); 
for i = 97:100 
    dispstat(sprintf(&#039;Progress %d%%&#039;,i),&#039;timestamp&#039;); 
    %doing some heavy stuff here 
end 
dispstat(&#039;Finished.&#039;,&#039;keepprev&#039;);
&lt;/pre&gt;
***Output: 
&lt;pre&gt;
11:25:37 Begining the process... 
11:25:37 Progress 100% 
Finished.
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I use &#8216;dispstat&#8217; function just for this purpose. It can update the previous output which is a missing function of default &#8216;disp&#8217;. Very simple to use. It can be downloaded from here:</p>
<p><a target="_blank" href="http://www.mathworks.com/matlabcentral/fileexchange/44673" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/44673</a></p>
<p>***Sample usage: </p>
<pre lang="matlab">
dispstat('','init'); % One time only initialization 
dispstat(sprintf('Begining the process...'),'keepthis','timestamp'); 
for i = 97:100 
    dispstat(sprintf('Progress %d%%',i),'timestamp'); 
    %doing some heavy stuff here 
end 
dispstat('Finished.','keepprev');
</pre>
<p>***Output: </p>
<pre>
11:25:37 Begining the process... 
11:25:37 Progress 100% 
Finished.
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JGit-Matlab integration &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-223385</link>

		<dc:creator><![CDATA[JGit-Matlab integration &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 10 Jul 2013 18:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-223385</guid>

					<description><![CDATA[[...] carriage return (or &#8216;r&#8217;) escape sequence which in Windows is the same as a newline (read here). So, I implemented a customized ProgressMonitor class for Matlab that uses backspace (or [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] carriage return (or &#8216;r&#8217;) escape sequence which in Windows is the same as a newline (read here). So, I implemented a customized ProgressMonitor class for Matlab that uses backspace (or [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Priya		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-179911</link>

		<dc:creator><![CDATA[Priya]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 15:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-179911</guid>

					<description><![CDATA[Is it possible to display the result being displayed in a command window onto a static text box in GUI??]]></description>
			<content:encoded><![CDATA[<p>Is it possible to display the result being displayed in a command window onto a static text box in GUI??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Helge		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-68461</link>

		<dc:creator><![CDATA[Helge]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 20:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-68461</guid>

					<description><![CDATA[I used char(0) to clear the &#039;CurrentCharacter&#039; property, checked IF 13==get(gcf,&#039;currentcharacter&#039;) ... to detect whether the user has pressed the [RETURN] key, and did similar stuff also to check special keyboard input, e.g., TAB=char(9) or any left/right/up/downarrow char(28:31) etc. Not all of this is &quot;innovative&quot;, but clearing the &#039;CurrentCharacter&#039; property is not as trivial as it seems... in fact, this property cannot be set to an empty value (R13-2007b):
&lt;pre lang=&quot;matlab&quot;&gt;
&gt;&gt; set(gcf,&#039;currentcharacter&#039;,&#039;&#039;);
??? Error using ==&gt; set
Bad value for figure property: &#039;CurrentCharacter&#039;.
&lt;/pre&gt;

The following, however, works:
&lt;pre lang=&quot;matlab&quot;&gt;
&gt;&gt; set(gcf,&#039;currentcharacter&#039;,char(0));
&gt;&gt; c=get(gcf,&#039;currentcharacter&#039;)
c =
     &#039;&#039;
&gt;&gt; double(c )  %% really empty (not 0)? ... apparently, yes!
ans =
     []
&lt;/pre&gt;

Apparently, the &#039;CurrentCharacter&#039; property can -in principle- be used to get/set virtually any char(0...255), incl. those for which no keys exist on the keyboard. However, I cannot exclude unexpected effects under different Matlab versions and OSs.]]></description>
			<content:encoded><![CDATA[<p>I used char(0) to clear the &#8216;CurrentCharacter&#8217; property, checked IF 13==get(gcf,&#8217;currentcharacter&#8217;) &#8230; to detect whether the user has pressed the [RETURN] key, and did similar stuff also to check special keyboard input, e.g., TAB=char(9) or any left/right/up/downarrow char(28:31) etc. Not all of this is &#8220;innovative&#8221;, but clearing the &#8216;CurrentCharacter&#8217; property is not as trivial as it seems&#8230; in fact, this property cannot be set to an empty value (R13-2007b):</p>
<pre lang="matlab">
>> set(gcf,'currentcharacter','');
??? Error using ==> set
Bad value for figure property: 'CurrentCharacter'.
</pre>
<p>The following, however, works:</p>
<pre lang="matlab">
>> set(gcf,'currentcharacter',char(0));
>> c=get(gcf,'currentcharacter')
c =
     ''
>> double(c )  %% really empty (not 0)? ... apparently, yes!
ans =
     []
</pre>
<p>Apparently, the &#8216;CurrentCharacter&#8217; property can -in principle- be used to get/set virtually any char(0&#8230;255), incl. those for which no keys exist on the keyboard. However, I cannot exclude unexpected effects under different Matlab versions and OSs.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: esp		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-68350</link>

		<dc:creator><![CDATA[esp]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 05:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-68350</guid>

					<description><![CDATA[See, for example, class &quot;ConsoleProgressBar&quot; http://www.mathworks.com/matlabcentral/fileexchange/30297-consoleprogressbar]]></description>
			<content:encoded><![CDATA[<p>See, for example, class &#8220;ConsoleProgressBar&#8221; <a href="http://www.mathworks.com/matlabcentral/fileexchange/30297-consoleprogressbar" rel="nofollow ugc">http://www.mathworks.com/matlabcentral/fileexchange/30297-consoleprogressbar</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Donn Shull		</title>
		<link>https://undocumentedmatlab.com/articles/command-window-text-manipulation#comment-68338</link>

		<dc:creator><![CDATA[Donn Shull]]></dc:creator>
		<pubDate>Thu, 29 Dec 2011 04:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2645#comment-68338</guid>

					<description><![CDATA[The Vax certianly is a blast from the past! But I would guess that very few readers of this blog know what the related acronym DEC stood for or have experience entering a boot loader into a PDP8 via the toggle switches on the front panel.]]></description>
			<content:encoded><![CDATA[<p>The Vax certianly is a blast from the past! But I would guess that very few readers of this blog know what the related acronym DEC stood for or have experience entering a boot loader into a PDP8 via the toggle switches on the front panel.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
