<?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: setPrompt &#8211; Setting the Matlab Desktop prompt	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setprompt-setting-matlab-desktop-prompt</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 15 Mar 2019 09:22:31 +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/setprompt-setting-matlab-desktop-prompt#comment-467768</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 15 Mar 2019 09:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-467768</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-467657&quot;&gt;Steven Hunsinger&lt;/a&gt;.

@Steven - did you even bother to download and try &lt;code&gt;setPrompt()&lt;/code&gt; before posting your comment?! 
It still works to this day (duh!)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-467657">Steven Hunsinger</a>.</p>
<p>@Steven &#8211; did you even bother to download and try <code>setPrompt()</code> before posting your comment?!<br />
It still works to this day (duh!)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Steven Hunsinger		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-467657</link>

		<dc:creator><![CDATA[Steven Hunsinger]]></dc:creator>
		<pubDate>Thu, 14 Mar 2019 23:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-467657</guid>

					<description><![CDATA[Does this work in Windows MATLAB R2018b?  Or would someone mind demonstrating how to change the prompt in R2018b via command?]]></description>
			<content:encoded><![CDATA[<p>Does this work in Windows MATLAB R2018b?  Or would someone mind demonstrating how to change the prompt in R2018b via command?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Akhwand Abdul Kareem		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-375058</link>

		<dc:creator><![CDATA[Akhwand Abdul Kareem]]></dc:creator>
		<pubDate>Mon, 25 Apr 2016 20:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-375058</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-6488&quot;&gt;Yair Altman&lt;/a&gt;.

do you have video of above for matlab16a on winwows 10
if yes reply me on email p126060@nu.edu.pk]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-6488">Yair Altman</a>.</p>
<p>do you have video of above for matlab16a on winwows 10<br />
if yes reply me on email <a href="mailto:p126060@nu.edu.pk">p126060@nu.edu.pk</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: How do you retrieve the selected text in MATLAB? - DexPage		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-352748</link>

		<dc:creator><![CDATA[How do you retrieve the selected text in MATLAB? - DexPage]]></dc:creator>
		<pubDate>Thu, 09 Jul 2015 22:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-352748</guid>

					<description><![CDATA[[...] thanks to @Yair Altman&#8216;s undocumented Matlab, I was able to figure out the java commands to make this [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] thanks to @Yair Altman&#8216;s undocumented Matlab, I was able to figure out the java commands to make this [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-330430</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 30 Aug 2014 17:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-330430</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-330406&quot;&gt;Steven Baete&lt;/a&gt;.

@Steven - read here: http://undocumentedmatlab.com/blog/matlab-callbacks-for-java-events-in-r2014a

In short, add the following before calling the &lt;i&gt;&lt;b&gt;set&lt;/b&gt;&lt;/i&gt; command:
&lt;pre lang=&#039;matlab&#039;&gt;jTextArea = handle(jTextArea,&#039;CallbackProperties&#039;);&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-330406">Steven Baete</a>.</p>
<p>@Steven &#8211; read here: <a href="http://undocumentedmatlab.com/blog/matlab-callbacks-for-java-events-in-r2014a" rel="ugc">http://undocumentedmatlab.com/blog/matlab-callbacks-for-java-events-in-r2014a</a></p>
<p>In short, add the following before calling the <i><b>set</b></i> command:</p>
<pre lang='matlab'>jTextArea = handle(jTextArea,'CallbackProperties');</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Steven Baete		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-330406</link>

		<dc:creator><![CDATA[Steven Baete]]></dc:creator>
		<pubDate>Fri, 29 Aug 2014 20:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-330406</guid>

					<description><![CDATA[Great post!
It helped me to show the command line output in my own GUI. 
&lt;pre lang=&quot;matlab&quot;&gt;
% to read the matlab output into our GUI
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jCmdWin = jDesktop.getClient(&#039;Command Window&#039;);
jTextArea = jCmdWin.getComponent(0).getViewport.getView;
set(jTextArea,&#039;CaretUpdateCallback&#039;,{@cwtext_Call,handles});
&lt;/pre&gt;
This worked fine in linux (Matlab R2013b,mint 17), however on the computer of a colleague of mine (a mac), I get the following error:

&lt;font color=&#039;red&#039;&gt;&lt;pre lang=&#039;text&#039;&gt;The name &#039;CaretUpdateCallback&#039; is not an accessible property for an instance of class &#039;com.mathworks.mde.cmdwin.XCmdWndView&#039;.&lt;/pre&gt;&lt;/font&gt;

It seems as the CaretUpdateCallback is not available on the mac (Matlab R2014a, Os X, v10.9.4), would you have a workaround for this?]]></description>
			<content:encoded><![CDATA[<p>Great post!<br />
It helped me to show the command line output in my own GUI. </p>
<pre lang="matlab">
% to read the matlab output into our GUI
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jCmdWin = jDesktop.getClient('Command Window');
jTextArea = jCmdWin.getComponent(0).getViewport.getView;
set(jTextArea,'CaretUpdateCallback',{@cwtext_Call,handles});
</pre>
<p>This worked fine in linux (Matlab R2013b,mint 17), however on the computer of a colleague of mine (a mac), I get the following error:</p>
<p><font color='red'></p>
<pre lang='text'>The name 'CaretUpdateCallback' is not an accessible property for an instance of class 'com.mathworks.mde.cmdwin.XCmdWndView'.</pre>
<p></font></p>
<p>It seems as the CaretUpdateCallback is not available on the mac (Matlab R2014a, Os X, v10.9.4), would you have a workaround for this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-11434</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 23 Jun 2010 16:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-11434</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-11430&quot;&gt;Rudolph&lt;/a&gt;.

@Rudolph - thanks.
Re the console, I don&#039;t know. You&#039;re welcome to try and possibly modify the source code. If you find anything useful, please send me]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-11430">Rudolph</a>.</p>
<p>@Rudolph &#8211; thanks.<br />
Re the console, I don&#8217;t know. You&#8217;re welcome to try and possibly modify the source code. If you find anything useful, please send me</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rudolph		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-11430</link>

		<dc:creator><![CDATA[Rudolph]]></dc:creator>
		<pubDate>Wed, 23 Jun 2010 15:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-11430</guid>

					<description><![CDATA[I&#039;ve been looking for a decent prompt control/replacement for a *very* long time! This is fantastic!

I do have one question/request. Mostly I run MatLAB in a term (gnome-terminal/konsole/whatever) and not from the MatLAB GUI (matlab -nosplahs -nodesktop).

Would your approach work for modifying the prompt in a console? Maybe something like setPromptCon..?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a decent prompt control/replacement for a *very* long time! This is fantastic!</p>
<p>I do have one question/request. Mostly I run MatLAB in a term (gnome-terminal/konsole/whatever) and not from the MatLAB GUI (matlab -nosplahs -nodesktop).</p>
<p>Would your approach work for modifying the prompt in a console? Maybe something like setPromptCon..?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-8663</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 15:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-8663</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-8651&quot;&gt;junziyang&lt;/a&gt;.

@junziyang - yes: you can add the &lt;b&gt;&lt;i&gt;setPrompt&lt;/i&gt;&lt;/b&gt; command to your startup.m function and it will be used in each Matlab session automatically.

If you don&#039;t have a startup.m file, simply create one in your Matlab startup folder - it&#039;s a simple Matlab script file that contains commands that run automatically whenever Matlab starts in that folder.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-8651">junziyang</a>.</p>
<p>@junziyang &#8211; yes: you can add the <b><i>setPrompt</i></b> command to your startup.m function and it will be used in each Matlab session automatically.</p>
<p>If you don&#8217;t have a startup.m file, simply create one in your Matlab startup folder &#8211; it&#8217;s a simple Matlab script file that contains commands that run automatically whenever Matlab starts in that folder.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: junziyang		</title>
		<link>https://undocumentedmatlab.com/articles/setprompt-setting-matlab-desktop-prompt#comment-8651</link>

		<dc:creator><![CDATA[junziyang]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 06:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=965#comment-8651</guid>

					<description><![CDATA[Another GREAT work!
Can this function be improved to make the user difined prompt as the default one  instead of calling setPrompt to manually set on each MATLAB session?]]></description>
			<content:encoded><![CDATA[<p>Another GREAT work!<br />
Can this function be improved to make the user difined prompt as the default one  instead of calling setPrompt to manually set on each MATLAB session?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
