<?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: Variable Editor</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:17:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-7610</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 16 Feb 2011 12:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-7610</guid>
		<description>For a MATLAB class object, there is not in the Variable Editor, but you can display the names of all the properties using the &lt;a href=&quot;http://www.mathworks.com/help/techdoc/ref/metaclass.html&quot; rel=&quot;nofollow&quot;&gt;&lt;tt&gt;metaclass&lt;/tt&gt;&lt;/a&gt; object:

&lt;pre class=&quot;code&quot;&gt;
metainfo = metaclass(x)
propList = metainfo.PropertyList
propertyNames = {propList.Name}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>For a MATLAB class object, there is not in the Variable Editor, but you can display the names of all the properties using the <a href="http://www.mathworks.com/help/techdoc/ref/metaclass.html" rel="nofollow"><tt>metaclass</tt></a> object:</p>
<pre class="code">
metainfo = metaclass(x)
propList = metainfo.PropertyList
propertyNames = {propList.Name}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-7607</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Mon, 14 Feb 2011 17:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-7607</guid>
		<description>Hi Mike!
Is there someway to view private members &lt;b&gt;outside&lt;/b&gt; of the object?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Mike!<br />
Is there someway to view private members <b>outside</b> of the object?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6790</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Wed, 13 Jan 2010 00:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6790</guid>
		<description>Thomas - unfortunately, the Variable Editor is tightly-coupled to Workspace variables. One would perhaps expect it to be a generic data editor that merely accepts the data when opened, but in fact it continues to be coupled even later. You can see this by modifying the variable in the Workspace and seeing the change automatically reflected in the Variable Editor.

An unfortunate side-effect of this design is that the Variable Editor needs to interact with the workspace (probably via JMI). Since there is only one Matlab computational thread, this interaction needs to wait for the user&#039;s function to exit (the &#039;&gt;&gt;&#039; prompt returning) before being able to query the variable data for display in the Editor.

Bottom Line: you can&#039;t wait (synchronously) on the Variable Editor within your code.

But, you CAN make this work if you modify your request such that a callback function is called when the Variable Editor editing has ended (the window is closed) - this makes the design asynchronous, which enables the JMI interaction. Note: The following uses some undocumented/unsupported features that may break in future Matlab releases or might cause your screen to go blind:

&lt;pre&gt;
% Open the variable in the Variable Editor
openvar(varname);
drawnow; pause(0.5); % wait for client to become visible

% Get handle of variable&#039;s client in the Variable Editor
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jClient = jDesktop.getClient(varname);
hjClient = handle(jClient,&#039;CallbackProperties&#039;);

% Instrument the client to fire callback when it&#039;s closed
set(hjClient,&#039;ComponentRemovedCallback&#039;,{@my_callback,varname});

function my_callback(varEditorObj,eventData,varname)
   data = evalin(&#039;caller&#039;,varname);
   % do something with this modified data
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thomas &#8211; unfortunately, the Variable Editor is tightly-coupled to Workspace variables. One would perhaps expect it to be a generic data editor that merely accepts the data when opened, but in fact it continues to be coupled even later. You can see this by modifying the variable in the Workspace and seeing the change automatically reflected in the Variable Editor.</p>
<p>An unfortunate side-effect of this design is that the Variable Editor needs to interact with the workspace (probably via JMI). Since there is only one Matlab computational thread, this interaction needs to wait for the user&#8217;s function to exit (the &#8216;&gt;&gt;&#8217; prompt returning) before being able to query the variable data for display in the Editor.</p>
<p>Bottom Line: you can&#8217;t wait (synchronously) on the Variable Editor within your code.</p>
<p>But, you CAN make this work if you modify your request such that a callback function is called when the Variable Editor editing has ended (the window is closed) &#8211; this makes the design asynchronous, which enables the JMI interaction. Note: The following uses some undocumented/unsupported features that may break in future Matlab releases or might cause your screen to go blind:</p>
<pre>
% Open the variable in the Variable Editor
openvar(varname);
drawnow; pause(0.5); % wait for client to become visible

% Get handle of variable's client in the Variable Editor
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jClient = jDesktop.getClient(varname);
hjClient = handle(jClient,'CallbackProperties');

% Instrument the client to fire callback when it's closed
set(hjClient,'ComponentRemovedCallback',{@my_callback,varname});

function my_callback(varEditorObj,eventData,varname)
   data = evalin('caller',varname);
   % do something with this modified data
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6789</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 12 Jan 2010 19:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6789</guid>
		<description>There&#039;s a few problems with this. The Variable Editor works on a different thread, so MATLAB imemdiately returns from the &lt;tt&gt;openvar&lt;/tt&gt; command, before the user&#039;d get a chance to update it. Second, openvar evaluates the variable name in the base workspace and not a function&#039;s workspace.

Your best bet would be a custom GUI or one of the input dialogs. Try searching the file exchange for submissions like &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/1909-mdedit&quot; rel=&quot;nofollow&quot;&gt;this one&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a few problems with this. The Variable Editor works on a different thread, so MATLAB imemdiately returns from the <tt>openvar</tt> command, before the user&#8217;d get a chance to update it. Second, openvar evaluates the variable name in the base workspace and not a function&#8217;s workspace.</p>
<p>Your best bet would be a custom GUI or one of the input dialogs. Try searching the file exchange for submissions like <a href="http://www.mathworks.com/matlabcentral/fileexchange/1909-mdedit" rel="nofollow">this one</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6786</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6786</guid>
		<description>Hi,

The variable editor is very usefull to edit any kind of variable but i&#039;d would like to know if there is a way to do something like :

&lt;pre&gt;
modified_var = openvar(&#039;initial_var&#039;)
&lt;/pre&gt;

That is, edit a variable with the variable editor, modify it and then get the modified variable as output.

Of course, i&#039;d like to do this from inside a function.

Thanks for any help</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The variable editor is very usefull to edit any kind of variable but i&#8217;d would like to know if there is a way to do something like :</p>
<pre>
modified_var = openvar('initial_var')
</pre>
<p>That is, edit a variable with the variable editor, modify it and then get the modified variable as output.</p>
<p>Of course, i&#8217;d like to do this from inside a function.</p>
<p>Thanks for any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6527</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 21 Sep 2009 14:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6527</guid>
		<description>Ryan,

 There shouldn&#039;t be a limit to the number of dependent properties that can be displayed (other than maybe system resources). Since this occurs for you at some variable point, I would suggest first talking to technical support to see if they can recommend a workaround:
&lt;a href=&quot;http://www.mathworks.com/support/service_requests/contact_support.do&quot; rel=&quot;nofollow&quot;&gt;http://www.mathworks.com/support/service_requests/contact_support.do&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p> There shouldn&#8217;t be a limit to the number of dependent properties that can be displayed (other than maybe system resources). Since this occurs for you at some variable point, I would suggest first talking to technical support to see if they can recommend a workaround:<br />
<a href="http://www.mathworks.com/support/service_requests/contact_support.do" rel="nofollow">http://www.mathworks.com/support/service_requests/contact_support.do</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6526</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 21 Sep 2009 13:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6526</guid>
		<description>Hi,

I find the variable editor very useful now that it is possible to view my own objects.  There seems to be a problem using dependent properties however.  It seems that if I have more than a couple of them, none of my objects properties show in the Variable Editor anymore.  Is there a way around this?  I cannot find any documentation to suggest what I am doing wrong.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I find the variable editor very useful now that it is possible to view my own objects.  There seems to be a problem using dependent properties however.  It seems that if I have more than a couple of them, none of my objects properties show in the Variable Editor anymore.  Is there a way around this?  I cannot find any documentation to suggest what I am doing wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6515</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 17 Sep 2009 07:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-6515</guid>
		<description>Hi,

I use Matlab R2008b, but I cannot see the private members of the obj I&#039;m debugging. Are there any additional settings to be made in order to make them visible in the variable editor?

Daniel</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I use Matlab R2008b, but I cannot see the private members of the obj I&#8217;m debugging. Are there any additional settings to be made in order to make them visible in the variable editor?</p>
<p>Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Gilmore</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-5953</link>
		<dc:creator>Bob Gilmore</dc:creator>
		<pubDate>Thu, 30 Oct 2008 15:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-5953</guid>
		<description>Marcelino,
Sorry, but that capability isn&#039;t available yet.  We have it entered in our enhancement tracking system.

Thanks for asking,
---
Bob Gilmore</description>
		<content:encoded><![CDATA[<p>Marcelino,<br />
Sorry, but that capability isn&#8217;t available yet.  We have it entered in our enhancement tracking system.</p>
<p>Thanks for asking,<br />
&#8212;<br />
Bob Gilmore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcelino Martinez</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-5951</link>
		<dc:creator>Marcelino Martinez</dc:creator>
		<pubDate>Thu, 30 Oct 2008 10:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2008/04/21/variable-editor/#comment-5951</guid>
		<description>Hi,

I am using varible editor in order to check the values in a big array (more than 280000 rows) 

Is it possible to jump to a specific row or colum in variable editor ?

Thank you very much</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using varible editor in order to check the values in a big array (more than 280000 rows) </p>
<p>Is it possible to jump to a specific row or colum in variable editor ?</p>
<p>Thank you very much</p>
]]></content:encoded>
	</item>
</channel>
</rss>

