<?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 for Undocumented Matlab</title> <atom:link href="http://undocumentedmatlab.com/comments/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Fri, 03 Feb 2012 11:51:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>Comment on Solving a MATLAB bug by subclassing by Yair Altman</title><link>http://undocumentedmatlab.com/blog/solving-a-matlab-bug-by-subclassing/#comment-73117</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Fri, 03 Feb 2012 11:51:43 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=1110#comment-73117</guid> <description>@sumaia - &lt;b&gt;&lt;i&gt;validateattributes&lt;/i&gt;&lt;/b&gt; simply ensures that the specified input variable is of the expected type. You can make these checks yourself, without really needing to use &lt;b&gt;&lt;i&gt;validateattributes&lt;/i&gt;&lt;/b&gt;. Or, if you are confident that the variables are of the expected type, you can skip these checks altogether.</description> <content:encoded><![CDATA[<p>@sumaia &#8211; <b><i>validateattributes</i></b> simply ensures that the specified input variable is of the expected type. You can make these checks yourself, without really needing to use <b><i>validateattributes</i></b>. Or, if you are confident that the variables are of the expected type, you can skip these checks altogether.</p> ]]></content:encoded> </item> <item><title>Comment on Solving a MATLAB bug by subclassing by sumaia</title><link>http://undocumentedmatlab.com/blog/solving-a-matlab-bug-by-subclassing/#comment-73116</link> <dc:creator>sumaia</dc:creator> <pubDate>Fri, 03 Feb 2012 11:27:43 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=1110#comment-73116</guid> <description>I am trying to run an example that uses validateattributes. My matlab is an older version and doesn&#039;t recognise this function.  Is it possible to load this function to my matlab and if so can you tell me how.  I also need the function list.
Many thanks</description> <content:encoded><![CDATA[<p>I am trying to run an example that uses validateattributes. My matlab is an older version and doesn&#8217;t recognise this function.  Is it possible to load this function to my matlab and if so can you tell me how.  I also need the function list.<br
/> Many thanks</p> ]]></content:encoded> </item> <item><title>Comment on Enable/disable entire figure window by Ramon Fincken</title><link>http://undocumentedmatlab.com/blog/disable-entire-figure-window/#comment-73092</link> <dc:creator>Ramon Fincken</dc:creator> <pubDate>Thu, 02 Feb 2012 15:03:42 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=2089#comment-73092</guid> <description>I was using a figure as webfigure (Java JA builder), and I wanted to get rid of the popup window ( the figure window ), while this happens at server GUI.This is how to suppress the window being created:&lt;pre lang=&quot;matlab&quot;&gt;f = figure(&#039;Visible&#039;,&#039;off&#039;);
// Do stuff here
webFigureHandle = webfigure(f);
close(f);&lt;/pre&gt;ps: your WP installation is outdated</description> <content:encoded><![CDATA[<p>I was using a figure as webfigure (Java JA builder), and I wanted to get rid of the popup window ( the figure window ), while this happens at server GUI.</p><p>This is how to suppress the window being created:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">f = <span style="color: #0000FF;">figure</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Visible'</span>,<span style="color:#A020F0;">'off'</span><span style="color: #080;">&#41;</span>;
// Do stuff here
webFigureHandle = webfigure<span style="color: #080;">&#40;</span>f<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">close</span><span style="color: #080;">&#40;</span>f<span style="color: #080;">&#41;</span>;</pre></div></div><p>ps: your WP installation is outdated</p> ]]></content:encoded> </item> <item><title>Comment on Customizing uicontrol border by Lemikainen</title><link>http://undocumentedmatlab.com/blog/customizing-uicontrol-border/#comment-73086</link> <dc:creator>Lemikainen</dc:creator> <pubDate>Thu, 02 Feb 2012 09:35:44 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=1947#comment-73086</guid> <description>thx for quick reply, already tried method you suggest yesterday but had some troubles and noticeable delay before changes are applied. Especially if i try to change border and background at the same time, it only changes one property and i have to rerun it to change all...  (changing foreground and background at the same time works)Do you have any idea how to minimalize the delay before applying changes?
here is the code i use
**************************************************************
lineColor = java.awt.Color(1,1,1);
thickness = 1;
roundedCorners = false;
newBorder = javax.swing.border.LineBorder(lineColor,thickness,roundedCorners);backgroundColor=java.awt.Color(0.141,0.518,1);
foregroundColor=java.awt.Color(1,1,1);
jButton = findjobj(&#039;class&#039;,&#039;pushbutton&#039;);
length(jButton)for i=1:1:length(jButton)
set(jButton(i), &#039;Background&#039;, backgroundColor,...
&#039;Foreground&#039;, foregroundColor, &#039;Border&#039;, newBorder);
end</description> <content:encoded><![CDATA[<p>thx for quick reply, already tried method you suggest yesterday but had some troubles and noticeable delay before changes are applied. Especially if i try to change border and background at the same time, it only changes one property and i have to rerun it to change all&#8230;  (changing foreground and background at the same time works)</p><p>Do you have any idea how to minimalize the delay before applying changes?<br
/> here is the code i use<br
/> **************************************************************<br
/> lineColor = java.awt.Color(1,1,1);<br
/> thickness = 1;<br
/> roundedCorners = false;<br
/> newBorder = javax.swing.border.LineBorder(lineColor,thickness,roundedCorners);</p><p> backgroundColor=java.awt.Color(0.141,0.518,1);<br
/> foregroundColor=java.awt.Color(1,1,1);<br
/> jButton = findjobj(&#8216;class&#8217;,'pushbutton&#8217;);<br
/> length(jButton)</p><p> for i=1:1:length(jButton)<br
/> set(jButton(i), &#8216;Background&#8217;, backgroundColor,&#8230;<br
/> &#8216;Foreground&#8217;, foregroundColor, &#8216;Border&#8217;, newBorder);<br
/> end</p> ]]></content:encoded> </item> <item><title>Comment on Controlling callback re-entrancy by Michele</title><link>http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy/#comment-73084</link> <dc:creator>Michele</dc:creator> <pubDate>Thu, 02 Feb 2012 08:49:34 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=2403#comment-73084</guid> <description>@Yair - Thank you very much for the quick reply, I&#039;ll definitely give it a try.</description> <content:encoded><![CDATA[<p>@Yair &#8211; Thank you very much for the quick reply, I&#8217;ll definitely give it a try.</p> ]]></content:encoded> </item> <item><title>Comment on Controlling callback re-entrancy by Yair Altman</title><link>http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy/#comment-73083</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 02 Feb 2012 08:42:16 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=2403#comment-73083</guid> <description>@Michele - you could store a temporary flag in a persistent variable or the handle&#039;s &lt;b&gt;ApplicationData/UserData&lt;/b&gt;, or a variant of these. For example:&lt;pre lang=&quot;matlab&quot;&gt;
% Variant1
function myCallbackFcn1(hObject,eventData,varargin)
persistent inCallback
if ~isempty(inCallback),  return;  end
inCallback = true;
try
% do something useful here
catch
% error trapping here
end
inCallback = [];
end  % myCallbackFcn1% Variant2
function myCallbackFcn2(hObject,eventData,varargin)
inCallback = getappdata(hObject,&#039;inCallback&#039;);
if ~isempty(inCallback),  return;  end
setappdata(hObject,&#039;inCallback&#039;,true);
try
% do something useful here
catch
% error trapping here
end
setappdata(hObject,&#039;inCallback&#039;,[]);
end  % myCallbackFcn2
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>@Michele &#8211; you could store a temporary flag in a persistent variable or the handle&#8217;s <b>ApplicationData/UserData</b>, or a variant of these. For example:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #228B22;">% Variant1</span>
<span style="color: #0000FF;">function</span> myCallbackFcn1<span style="color: #080;">&#40;</span>hObject,eventData,<span style="color: #0000FF;">varargin</span><span style="color: #080;">&#41;</span>
   <span style="color: #0000FF;">persistent</span> inCallback
   <span style="color: #0000FF;">if</span> ~<span style="color: #0000FF;">isempty</span><span style="color: #080;">&#40;</span>inCallback<span style="color: #080;">&#41;</span>,  <span style="color: #0000FF;">return</span>;  <span style="color: #0000FF;">end</span>
   inCallback = <span style="color: #0000FF;">true</span>;
   <span style="color: #0000FF;">try</span>
       <span style="color: #228B22;">% do something useful here</span>
   <span style="color: #0000FF;">catch</span>
       <span style="color: #228B22;">% error trapping here</span>
   <span style="color: #0000FF;">end</span>
   inCallback = <span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span>;
<span style="color: #0000FF;">end</span>  <span style="color: #228B22;">% myCallbackFcn1</span>
&nbsp;
<span style="color: #228B22;">% Variant2</span>
<span style="color: #0000FF;">function</span> myCallbackFcn2<span style="color: #080;">&#40;</span>hObject,eventData,<span style="color: #0000FF;">varargin</span><span style="color: #080;">&#41;</span>
   inCallback = <span style="color: #0000FF;">getappdata</span><span style="color: #080;">&#40;</span>hObject,<span style="color:#A020F0;">'inCallback'</span><span style="color: #080;">&#41;</span>;
   <span style="color: #0000FF;">if</span> ~<span style="color: #0000FF;">isempty</span><span style="color: #080;">&#40;</span>inCallback<span style="color: #080;">&#41;</span>,  <span style="color: #0000FF;">return</span>;  <span style="color: #0000FF;">end</span>
   <span style="color: #0000FF;">setappdata</span><span style="color: #080;">&#40;</span>hObject,<span style="color:#A020F0;">'inCallback'</span>,<span style="color: #0000FF;">true</span><span style="color: #080;">&#41;</span>;
   <span style="color: #0000FF;">try</span>
       <span style="color: #228B22;">% do something useful here</span>
   <span style="color: #0000FF;">catch</span>
       <span style="color: #228B22;">% error trapping here</span>
   <span style="color: #0000FF;">end</span>
   <span style="color: #0000FF;">setappdata</span><span style="color: #080;">&#40;</span>hObject,<span style="color:#A020F0;">'inCallback'</span>,<span style="color: #080;">&#91;</span><span style="color: #080;">&#93;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">end</span>  <span style="color: #228B22;">% myCallbackFcn2</span></pre></div></div>]]></content:encoded> </item> <item><title>Comment on Controlling callback re-entrancy by Michele</title><link>http://undocumentedmatlab.com/blog/controlling-callback-re-entrancy/#comment-73082</link> <dc:creator>Michele</dc:creator> <pubDate>Thu, 02 Feb 2012 08:31:22 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=2403#comment-73082</guid> <description>This utility is very interesting, but due to the use of &#039;dbstack&#039; it wouldn&#039;t work in compiled applications.
Do you know of any easy workaround for that?
Thank you very much</description> <content:encoded><![CDATA[<p>This utility is very interesting, but due to the use of &#8216;dbstack&#8217; it wouldn&#8217;t work in compiled applications.<br
/> Do you know of any easy workaround for that?<br
/> Thank you very much</p> ]]></content:encoded> </item> <item><title>Comment on Undocumented XML functionality by Yair Altman</title><link>http://undocumentedmatlab.com/blog/undocumented-xml-functionality/#comment-73071</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 02 Feb 2012 00:47:54 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=751#comment-73071</guid> <description>@James - I don&#039;t have an immediate answer for you, it requires some investigation. This sounds like a good idea for a future article. If you cannot wait for this article to appear, you could contact me by email (link at the top right of this page) to discuss a short consulting gig.</description> <content:encoded><![CDATA[<p>@James &#8211; I don&#8217;t have an immediate answer for you, it requires some investigation. This sounds like a good idea for a future article. If you cannot wait for this article to appear, you could contact me by email (link at the top right of this page) to discuss a short consulting gig.</p> ]]></content:encoded> </item> <item><title>Comment on Recovering previous editor state by MLintFailureFiles or: Why can’t I save my m-file?! &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/recovering-previous-editor-state/#comment-73068</link> <dc:creator>MLintFailureFiles or: Why can’t I save my m-file?! &#124; Undocumented Matlab</dc:creator> <pubDate>Thu, 02 Feb 2012 00:15:27 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=2656#comment-73068</guid> <description>[...] a few weeks ago, when I explained how to use the stored editor state file that is stored in the prefdir folder [...]</description> <content:encoded><![CDATA[<p>[...] a few weeks ago, when I explained how to use the stored editor state file that is stored in the prefdir folder [...]</p> ]]></content:encoded> </item> <item><title>Comment on Tab panels &#8211; uitab and relatives by Yair Altman</title><link>http://undocumentedmatlab.com/blog/tab-panels-uitab-and-relatives/#comment-73066</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 01 Feb 2012 21:54:55 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=1635#comment-73066</guid> <description>@Ryan - as I explained in the &lt;a target=&quot;_blank&quot; href=&quot;http://undocumentedmatlab.com/blog/uitab-customizations/#Other&quot; rel=&quot;nofollow&quot;&gt;follow-up article&lt;/a&gt;, Matlab tabs have an internal bug that causes Java and ActiveX controls to remain visible when the tabs are changed, unlike &quot;regular&quot; Matlab uicontrols that behave nicely. Several workarounds are mentioned &lt;a target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/162430&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;, and you can also easily fix this bug by modifying the m-files in the folders &lt;i&gt;%matlabroot%/toolbox/matlab/@uitools/@uitabgroup&lt;/i&gt; and &lt;i&gt;/@uitools/@uitab&lt;/i&gt;. At least some of these problems are fixed as of R2010a, but I can&#039;t remember right now whether the Java bug is one of them.</description> <content:encoded><![CDATA[<p>@Ryan &#8211; as I explained in the <a
target="_blank" href="http://undocumentedmatlab.com/blog/uitab-customizations/#Other" rel="nofollow">follow-up article</a>, Matlab tabs have an internal bug that causes Java and ActiveX controls to remain visible when the tabs are changed, unlike &#8220;regular&#8221; Matlab uicontrols that behave nicely. Several workarounds are mentioned <a
target="_blank" href="http://www.mathworks.com/matlabcentral/newsreader/view_thread/162430" rel="nofollow">here</a>, and you can also easily fix this bug by modifying the m-files in the folders <i>%matlabroot%/toolbox/matlab/@uitools/@uitabgroup</i> and <i>/@uitools/@uitab</i>. At least some of these problems are fixed as of R2010a, but I can&#8217;t remember right now whether the Java bug is one of them.</p> ]]></content:encoded> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           index
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-02-04 02:34:41 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          comments/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.717s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328348080; expires=Sun, 03-Feb-2013 09:34:40 GMT; path=/
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Sat, 04 Feb 2012 09:34:41 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Sat, 04 Feb 2012 10:34:41 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               6071d4a38d47fb4a3f594a6a9e818bd2
Content-Encoding:   gzip
-->
