<?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>Thu, 09 Feb 2012 09:23:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <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> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-21173</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 27 Oct 2010 20:54:27 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-21173</guid> <description>@Mike - there a simple way to do this that does not directly modify the Workspace table but rather the class-registry which drives the context menu. I&#039;ll write about this in next week&#039;s article.-Yair</description> <content:encoded><![CDATA[<p>@Mike &#8211; there a simple way to do this that does not directly modify the Workspace table but rather the class-registry which drives the context menu. I&#8217;ll write about this in next week&#8217;s article.</p><p>-Yair</p> ]]></content:encoded> </item> <item><title>By: Mike L</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-21170</link> <dc:creator>Mike L</dc:creator> <pubDate>Wed, 27 Oct 2010 20:34:55 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-21170</guid> <description>Fantastic work!  This is a really good idea.  Not sure if anyone still reads this but:I was trying to see if I could take this one step further -- I have a function that allows me to preview a certain type of structure I use a lot so I thought I would try to add a new contextual menu item for this.There appears to be two popup handlers for the Workspace browser/table, that I&#039;m able to access using:
&lt;pre lang=&quot;matlab&quot;&gt;jWSTable.getNoSelectionPopupMenu()
jWSTable.getSelectionPopupMenu()
&lt;/pre&gt;I&#039;m able to change the first one easily enough; if I just call:
&lt;pre lang=&quot;matlab&quot;&gt;jWSTable.getNoSelectionPopupMenu().addSeparator()&lt;/pre&gt;This adds a new separator just fine.  However, I can&#039;t do the same with the more useful popup used when I have a workspace variable selected.  For some reason whenever I add a new menu item to it, it gets reset after I do anything.Would something like this require me to write a custom cell renderer as well?  Or is there an easy way to do this?</description> <content:encoded><![CDATA[<p>Fantastic work!  This is a really good idea.  Not sure if anyone still reads this but:</p><p>I was trying to see if I could take this one step further &#8212; I have a function that allows me to preview a certain type of structure I use a lot so I thought I would try to add a new contextual menu item for this.</p><p>There appears to be two popup handlers for the Workspace browser/table, that I&#8217;m able to access using:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jWSTable.<span style="">getNoSelectionPopupMenu</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#41;</span>
jWSTable.<span style="">getSelectionPopupMenu</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#41;</span></pre></div></div><p>I&#8217;m able to change the first one easily enough; if I just call:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">jWSTable.<span style="">getNoSelectionPopupMenu</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#41;</span>.<span style="">addSeparator</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#41;</span></pre></div></div><p>This adds a new separator just fine.  However, I can&#8217;t do the same with the more useful popup used when I have a workspace variable selected.  For some reason whenever I add a new menu item to it, it gets reset after I do anything.</p><p>Would something like this require me to write a custom cell renderer as well?  Or is there an easy way to do this?</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-6243</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 20 Jan 2010 16:42:07 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-6243</guid> <description>@Ben - I think what you ask is possible if you add a JMI call in your CellRenderer.  In a nutshell, the Renderer code will get the variable name from the table&#039;s other column, and query its size by invoking JMI with the &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; function. However, this is non-trivial and also goes against known programming practices (that Renderers should be kept as light and fast as possible). On the other hand, I cannot think of any other way to do it.</description> <content:encoded><![CDATA[<p>@Ben &#8211; I think what you ask is possible if you add a JMI call in your CellRenderer.  In a nutshell, the Renderer code will get the variable name from the table&#8217;s other column, and query its size by invoking JMI with the <b><i>size</i></b> function. However, this is non-trivial and also goes against known programming practices (that Renderers should be kept as light and fast as possible). On the other hand, I cannot think of any other way to do it.</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://undocumentedmatlab.com/blog/customizing-matlabs-workspace-table/#comment-6241</link> <dc:creator>Ben</dc:creator> <pubDate>Wed, 20 Jan 2010 16:12:18 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=882#comment-6241</guid> <description>Nice trick!Is it possible to make the Size column display the size for 4-D matrices this way?Right now, the Size column just displays &quot;4-D&quot; in case of a 4-D matrix, instead of &quot;m x n x p x q&quot;, which is very annoying...Cheers,
Ben</description> <content:encoded><![CDATA[<p>Nice trick!</p><p>Is it possible to make the Size column display the size for 4-D matrices this way?</p><p>Right now, the Size column just displays &#8220;4-D&#8221; in case of a 4-D matrix, instead of &#8220;m x n x p x q&#8221;, which is very annoying&#8230;</p><p>Cheers,<br
/> Ben</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-02-09 05:48:40 -->

<!-- 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.589s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328791720; expires=Fri, 08-Feb-2013 12:48:40 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=882>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Thu, 09 Feb 2012 12:48:40 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Thu, 09 Feb 2012 13:48:40 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               758044508d962ea78ff8d21de02ef487
Content-Encoding:   gzip
-->
