<?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: Customizing Matlab&#8217;s Workspace table</title> <atom:link href="http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Fri, 18 May 2012 13:56:51 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-78654</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 22 Mar 2012 21:38:12 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-78654</guid> <description>@Lukasz - try
&lt;pre lang=&quot;matlab&quot;&gt;jWSBrowser = jDesktop.getClientByName(&#039;Workspace&#039;)&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>@Lukasz &#8211; try</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jWSBrowser = jDesktop.<span style="">getClientByName</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Workspace'</span><span style="color: #080;">&#41;</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Lukasz Wiklendt</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-78649</link> <dc:creator>Lukasz Wiklendt</dc:creator> <pubDate>Thu, 22 Mar 2012 21:16:18 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-78649</guid> <description>Putting this in startup.m:
&lt;pre lang=&quot;matlab&quot;&gt;jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jDesktop.getClientTitles
jDesktop.getClient(&#039;Workspace&#039;)
&lt;/pre&gt;
results in this showing up in the command window:
&lt;pre lang=&quot;matlab&quot;&gt;ans =
java.lang.String[]:
&#039;Command Window&#039;
&#039;Command History&#039;
&#039;Current Folder&#039;
&#039;Workspace&#039;
&#039;Help&#039;
&#039;Profiler&#039;
&#039;File Exchange&#039;
&#039;Figure Palette&#039;
&#039;Plot Browser&#039;
&#039;Property Editor&#039;ans =
[]
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Putting this in startup.m:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jDesktop = com.<span style="">mathworks</span>.<span style="">mde</span>.<span style="">desk</span>.<span style="">MLDesktop</span>.<span style="">getInstance</span>;
jDesktop.<span style="">getClientTitles</span>
jDesktop.<span style="">getClient</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Workspace'</span><span style="color: #080;">&#41;</span></pre></div></div><p>results in this showing up in the command window:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #0000FF;">ans</span> =
&nbsp;
java.<span style="">lang</span>.<span style="">String</span><span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span><span style="color: #F0F;">:</span>
    <span style="color:#A020F0;">'Command Window'</span>
    <span style="color:#A020F0;">'Command History'</span>
    <span style="color:#A020F0;">'Current Folder'</span>
    <span style="color:#A020F0;">'Workspace'</span>
    <span style="color:#A020F0;">'Help'</span>
    <span style="color:#A020F0;">'Profiler'</span>
    <span style="color:#A020F0;">'File Exchange'</span>
    <span style="color:#A020F0;">'Figure Palette'</span>
    <span style="color:#A020F0;">'Plot Browser'</span>
    <span style="color:#A020F0;">'Property Editor'</span>
&nbsp;
<span style="color: #0000FF;">ans</span> =
     <span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-78460</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 21 Mar 2012 07:28:12 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-78460</guid> <description>@Lukasz - maybe your Workspace client is called something else. run &lt;code&gt;jDesktop.getClientTitles&lt;/code&gt; to get the full list of clients in your Matlab - the Workspace should be near the top of this list:&lt;pre lang=&#039;matlab&#039;&gt;
&gt;&gt; jDesktop.getClientTitles
ans =
java.lang.String[]:
&#039;Command Window&#039;
&#039;Command History&#039;
&#039;Current Folder&#039;
&#039;Workspace&#039;
&#039;Help&#039;
&#039;Profiler&#039;
&#039;File Exchange&#039;
...
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>@Lukasz &#8211; maybe your Workspace client is called something else. run <code>jDesktop.getClientTitles</code> to get the full list of clients in your Matlab &#8211; the Workspace should be near the top of this list:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">&gt;&gt; jDesktop.<span style="">getClientTitles</span>
<span style="color: #0000FF;">ans</span> =
&nbsp;
java.<span style="">lang</span>.<span style="">String</span><span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span><span style="color: #F0F;">:</span>
    <span style="color:#A020F0;">'Command Window'</span>
    <span style="color:#A020F0;">'Command History'</span>
    <span style="color:#A020F0;">'Current Folder'</span>
    <span style="color:#A020F0;">'Workspace'</span>
    <span style="color:#A020F0;">'Help'</span>
    <span style="color:#A020F0;">'Profiler'</span>
    <span style="color:#A020F0;">'File Exchange'</span>
    <span style="color: #F0F;">...</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Lukasz Wiklendt</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-78423</link> <dc:creator>Lukasz Wiklendt</dc:creator> <pubDate>Tue, 20 Mar 2012 23:22:53 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-78423</guid> <description>In Matlab 2011b the startup script fails since&lt;pre lang=&quot;matlab&quot;&gt;jWSBrowser = jDesktop.getClient(&#039;Workspace&#039;);&lt;/pre&gt;returns an empty array. The crude workaround that I use to get it to work again is&lt;pre lang=&quot;matlab&quot;&gt;
jWSBrowser = [];
while isempty(jWSBrowser)
jWSBrowser = jDesktop.getClient(&#039;Workspace&#039;);
end
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>In Matlab 2011b the startup script fails since</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jWSBrowser = jDesktop.<span style="">getClient</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Workspace'</span><span style="color: #080;">&#41;</span>;</pre></div></div><p>returns an empty array. The crude workaround that I use to get it to work again is</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jWSBrowser = <span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span>;
<span style="color: #0000FF;">while</span> <span style="color: #0000FF;">isempty</span><span style="color: #080;">&#40;</span>jWSBrowser<span style="color: #080;">&#41;</span>
    jWSBrowser = jDesktop.<span style="">getClient</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Workspace'</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">end</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Tarun Jhamnani</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-57856</link> <dc:creator>Tarun Jhamnani</dc:creator> <pubDate>Tue, 27 Sep 2011 10:56:07 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-57856</guid> <description>Looking forward for the article. Will definitely re-post.
Thanks Yair.</description> <content:encoded><![CDATA[<p>Looking forward for the article. Will definitely re-post.<br
/> Thanks Yair.</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-57855</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Tue, 27 Sep 2011 10:28:13 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-57855</guid> <description>There&#039;s probably a way somehow to monitor variable allocation and deallocation, but I do not know how to do it. If there is any person in the world (outside MathWorks) who knows, it would probably be Andrew Janke. I plan to post an article of his about Matlab&#039;s memory usage sometime in the hazy future, and you could re-post your question there.</description> <content:encoded><![CDATA[<p>There&#8217;s probably a way somehow to monitor variable allocation and deallocation, but I do not know how to do it. If there is any person in the world (outside MathWorks) who knows, it would probably be Andrew Janke. I plan to post an article of his about Matlab&#8217;s memory usage sometime in the hazy future, and you could re-post your question there.</p> ]]></content:encoded> </item> <item><title>By: Tarun Jhamnani</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-57847</link> <dc:creator>Tarun Jhamnani</dc:creator> <pubDate>Tue, 27 Sep 2011 09:27:40 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-57847</guid> <description>Thanks Yair.
I was able to detect the variable deletion. As you have mentioned about CPU load, is there a way where deletion of particular variable can be detected (depending on memory location or something). I want to know more about variable storage in matlab environment so that I can monitor clearing of particular memory location (if it is possible).
The whole point being more efficient technique to monitor variable deletion.</description> <content:encoded><![CDATA[<p>Thanks Yair.<br
/> I was able to detect the variable deletion. As you have mentioned about CPU load, is there a way where deletion of particular variable can be detected (depending on memory location or something). I want to know more about variable storage in matlab environment so that I can monitor clearing of particular memory location (if it is possible).<br
/> The whole point being more efficient technique to monitor variable deletion.</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-57842</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Tue, 27 Sep 2011 07:58:31 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-57842</guid> <description>@Tarun - you can try listening to the &lt;b&gt;TableChanged&lt;/b&gt; event on the workspace table&#039;s model:&lt;pre lang=&quot;matlab&quot;&gt;
hjModel = handle(jWSTable.getModel, &#039;CallbackProperties&#039;);
set(hjModel, &#039;TableChangedCallback&#039;, @myCallbackFunction);
&lt;/pre&gt;Just note that this keeps firing all the time so you need to check for actual changes in the rowcount at the very top of your callback and bail-out if no change. Otherwise your Matlab will get stuck in 100% CPU load just processing the callback events...</description> <content:encoded><![CDATA[<p>@Tarun &#8211; you can try listening to the <b>TableChanged</b> event on the workspace table&#8217;s model:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">hjModel = handle<span style="color: #080;">&#40;</span>jWSTable.<span style="">getModel</span>, <span style="color:#A020F0;">'CallbackProperties'</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>hjModel, <span style="color:#A020F0;">'TableChangedCallback'</span>, @myCallbackFunction<span style="color: #080;">&#41;</span>;</pre></div></div><p>Just note that this keeps firing all the time so you need to check for actual changes in the rowcount at the very top of your callback and bail-out if no change. Otherwise your Matlab will get stuck in 100% CPU load just processing the callback events&#8230;</p> ]]></content:encoded> </item> <item><title>By: Tarun Jhamnani</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-57828</link> <dc:creator>Tarun Jhamnani</dc:creator> <pubDate>Tue, 27 Sep 2011 05:55:19 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-57828</guid> <description>Hi,
Works like a charm,really awesome.
My question is slightly off the track to this article.Since,it is related to workspace i will go ahead and ask. I will be glad to have input on this.
Can i monitor deletion of any variable from the workspace table(event which gets fired on deletion of variable).I tried listening events related to jworkspace table but it seems they are of no use to detect the deletion of variable.Mouseclicked,property change,key pressed etc all these event i was able to listen to.Am i missing something or i need to change my approach.
Please Help.</description> <content:encoded><![CDATA[<p>Hi,<br
/> Works like a charm,really awesome.<br
/> My question is slightly off the track to this article.Since,it is related to workspace i will go ahead and ask. I will be glad to have input on this.<br
/> Can i monitor deletion of any variable from the workspace table(event which gets fired on deletion of variable).I tried listening events related to jworkspace table but it seems they are of no use to detect the deletion of variable.Mouseclicked,property change,key pressed etc all these event i was able to listen to.Am i missing something or i need to change my approach.<br
/> Please Help.</p> ]]></content:encoded> </item> <item><title>By: Customizing Workspace context-menu &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-21762</link> <dc:creator>Customizing Workspace context-menu &#124; Undocumented Matlab</dc:creator> <pubDate>Wed, 03 Nov 2010 18:01:59 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-21762</guid> <description>[...] Last week, a reader of that article posted a comment asking how to customize the context (right-click) menu with some user-defined actions [...]</description> <content:encoded><![CDATA[<p>[...] Last week, a reader of that article posted a comment asking how to customize the context (right-click) menu with some user-defined actions [...]</p> ]]></content:encoded> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           single
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-05-18 22:30:38 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/customizing-matlabs-workspace-table/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.646s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1337405438; expires=Sun, 19-May-2013 05:30:38 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=882>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Sat, 19 May 2012 05:30:38 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Sat, 19 May 2012 06:30:38 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               b9d36b1b4772740f8a14c3b500f2bef8
Content-Encoding:   gzip
-->
