<?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: propertiesGUI	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/propertiesgui/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/propertiesgui?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=propertiesgui</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 22 Dec 2016 07:54:47 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Ahmad		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-397228</link>

		<dc:creator><![CDATA[Ahmad]]></dc:creator>
		<pubDate>Thu, 22 Dec 2016 07:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-397228</guid>

					<description><![CDATA[Hi
I want to thank from Mr Yair Altman due to its comments in GUI area. I have a question:
Is is possible to call Tow other GUI in a main GUI in the main window without opening a new window ?
My means is that i want to merge some different GUI in a main GUI with one window.
B. Regards]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
I want to thank from Mr Yair Altman due to its comments in GUI area. I have a question:<br />
Is is possible to call Tow other GUI in a main GUI in the main window without opening a new window ?<br />
My means is that i want to merge some different GUI in a main GUI with one window.<br />
B. Regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ondrej		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-377314</link>

		<dc:creator><![CDATA[Ondrej]]></dc:creator>
		<pubDate>Thu, 19 May 2016 18:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-377314</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-235893&quot;&gt;Brett&lt;/a&gt;.

I am struggling for a while with an efficient retrieving of dynamic changing substructures from a string. According to my measurements, classical for loop combined with regexp is the fastest one. However, regexp seems to be a big bottleneck in this case.

&lt;pre lang=&quot;matlab&quot;&gt;
string1 = &#039;one.two.three.four&#039;;
A.one.two.three.four = 1;

tic
for n = 1:1000
   eval([&#039;out1 = A.&#039;, string1, &#039;;&#039;]);
end
toc

tic
for n = 1:1000
   out2 = eval([&#039;A.&#039;, string1]);
end
toc

tic
for n = 1:1000
   reg1 = regexp(string1, &#039;\.&#039;, &#039;split&#039;);
   out3 = getfield(A, reg1{:});
end
toc

tic
for n = 1:1000
   reg2 = regexp(string1, &#039;\.&#039;, &#039;split&#039;);
   out4 = A.(reg2{1});
   for n = 2:length(reg1)
      out4 = out4.(reg2{n});
   end
end
toc
&lt;/pre&gt;

With times:
Elapsed time is 0.036253 seconds.
Elapsed time is 0.031294 seconds.
Elapsed time is 0.046321 seconds.
Elapsed time is 0.018785 seconds.

so &lt;code&gt;getfield&lt;/code&gt; is the slowest option here and classical &quot;sub-looping&quot; the fastest. 

Nevertheless, a faster replacement for &lt;code&gt;regexp&lt;/code&gt; (since I am running version without &lt;code&gt;strsplit&lt;/code&gt;) would be definitely nice.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-235893">Brett</a>.</p>
<p>I am struggling for a while with an efficient retrieving of dynamic changing substructures from a string. According to my measurements, classical for loop combined with regexp is the fastest one. However, regexp seems to be a big bottleneck in this case.</p>
<pre lang="matlab">
string1 = 'one.two.three.four';
A.one.two.three.four = 1;

tic
for n = 1:1000
   eval(['out1 = A.', string1, ';']);
end
toc

tic
for n = 1:1000
   out2 = eval(['A.', string1]);
end
toc

tic
for n = 1:1000
   reg1 = regexp(string1, '\.', 'split');
   out3 = getfield(A, reg1{:});
end
toc

tic
for n = 1:1000
   reg2 = regexp(string1, '\.', 'split');
   out4 = A.(reg2{1});
   for n = 2:length(reg1)
      out4 = out4.(reg2{n});
   end
end
toc
</pre>
<p>With times:<br />
Elapsed time is 0.036253 seconds.<br />
Elapsed time is 0.031294 seconds.<br />
Elapsed time is 0.046321 seconds.<br />
Elapsed time is 0.018785 seconds.</p>
<p>so <code>getfield</code> is the slowest option here and classical &#8220;sub-looping&#8221; the fastest. </p>
<p>Nevertheless, a faster replacement for <code>regexp</code> (since I am running version without <code>strsplit</code>) would be definitely nice.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Abajo		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-370396</link>

		<dc:creator><![CDATA[Daniel Abajo]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 08:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-370396</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-150208&quot;&gt;Andrea Merlo&lt;/a&gt;.

Andrea, could you find a solution for this. It happens in my application also when we have changed to 2015b]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-150208">Andrea Merlo</a>.</p>
<p>Andrea, could you find a solution for this. It happens in my application also when we have changed to 2015b</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: C. Chu		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-355494</link>

		<dc:creator><![CDATA[C. Chu]]></dc:creator>
		<pubDate>Wed, 19 Aug 2015 20:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-355494</guid>

					<description><![CDATA[I think I found a bug in &lt;code&gt;propertiesGUI&lt;/code&gt;. If you have multiple field names that exist in different &lt;code&gt;struct&lt;/code&gt;s, all of those property fields are set to the same type as the &lt;i&gt;last&lt;/i&gt; field. Here&#039;s an example:
&lt;pre lang=&quot;matlab&quot;&gt;
props = struct;
props.Info_A.Field_1 = {&#039;A&#039; &#039;B&#039; &#039;C&#039; &#039;&#039;};
props.Info_B.Field_2 = {&#039;1&#039; &#039;2&#039; &#039;3&#039; &#039;&#039;};
props.Info_B.Field_3 = {&#039;X&#039; &#039;Y&#039; &#039;Z&#039;};
props.Info_C.Field_1 = &#039;&#039;;
propertiesGUI(figure, props);
&lt;/pre&gt;

The result: the first row, which should be an editable dropdown with choice &#039;A&#039;, &#039;B&#039;, or &#039;C&#039; is now just a text box, and there&#039;s no dropdown.

Also, some questions regarding using dates: is there a way to set a date property to empty? I&#039;d like the box to be empty until the user fills it in the first time. Secondly, when you fill the date box you get something like &quot;Aug 19, 2015&quot;, but when the date selector is opened the format is dd/MM/yyyy. (I figured out how to make it yyyy-MM-dd for my own use). How do I switch the &quot;Aug 19, 2015&quot; view to &quot;2015-08-19&quot;? I&#039;m using MATLAB R2014b.

Thanks a lot! This is an overall excellent function to use.]]></description>
			<content:encoded><![CDATA[<p>I think I found a bug in <code>propertiesGUI</code>. If you have multiple field names that exist in different <code>struct</code>s, all of those property fields are set to the same type as the <i>last</i> field. Here&#8217;s an example:</p>
<pre lang="matlab">
props = struct;
props.Info_A.Field_1 = {'A' 'B' 'C' ''};
props.Info_B.Field_2 = {'1' '2' '3' ''};
props.Info_B.Field_3 = {'X' 'Y' 'Z'};
props.Info_C.Field_1 = '';
propertiesGUI(figure, props);
</pre>
<p>The result: the first row, which should be an editable dropdown with choice &#8216;A&#8217;, &#8216;B&#8217;, or &#8216;C&#8217; is now just a text box, and there&#8217;s no dropdown.</p>
<p>Also, some questions regarding using dates: is there a way to set a date property to empty? I&#8217;d like the box to be empty until the user fills it in the first time. Secondly, when you fill the date box you get something like &#8220;Aug 19, 2015&#8221;, but when the date selector is opened the format is dd/MM/yyyy. (I figured out how to make it yyyy-MM-dd for my own use). How do I switch the &#8220;Aug 19, 2015&#8221; view to &#8220;2015-08-19&#8221;? I&#8217;m using MATLAB R2014b.</p>
<p>Thanks a lot! This is an overall excellent function to use.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-330576</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 02 Sep 2014 10:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-330576</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-330574&quot;&gt;MI&lt;/a&gt;.

@MI - I will be very happy to help you integrate sophisticated table controls in your Matlab GUI, for a consulting fee. Please contact me via email (altmany at gmail).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-330574">MI</a>.</p>
<p>@MI &#8211; I will be very happy to help you integrate sophisticated table controls in your Matlab GUI, for a consulting fee. Please contact me via email (altmany at gmail).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MI		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-330574</link>

		<dc:creator><![CDATA[MI]]></dc:creator>
		<pubDate>Tue, 02 Sep 2014 09:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-330574</guid>

					<description><![CDATA[Hi Yair,

very good work! keep it up!

Actually I find it very useful to have a CellEditor for numeric matrix or for mixed-type table-data (cell-array).
Therefor I would like to use your app &quot;Java-based data table&quot; (http://www.mathworks.com/matlabcentral/fileexchange/14225-java-based-data-table), that is very useful for table-data!

But how can I link this Table-GUI-widget to the propertiesGUI? As I have read, we have to create a custom CellEditor that inherits from a JIDE CellEditor?
Can you give me some information how to start with that?

Or are there any built-in CellEditors that can do this?]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>very good work! keep it up!</p>
<p>Actually I find it very useful to have a CellEditor for numeric matrix or for mixed-type table-data (cell-array).<br />
Therefor I would like to use your app &#8220;Java-based data table&#8221; (<a href="http://www.mathworks.com/matlabcentral/fileexchange/14225-java-based-data-table" rel="nofollow ugc">http://www.mathworks.com/matlabcentral/fileexchange/14225-java-based-data-table</a>), that is very useful for table-data!</p>
<p>But how can I link this Table-GUI-widget to the propertiesGUI? As I have read, we have to create a custom CellEditor that inherits from a JIDE CellEditor?<br />
Can you give me some information how to start with that?</p>
<p>Or are there any built-in CellEditors that can do this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aleksei		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-323265</link>

		<dc:creator><![CDATA[Aleksei]]></dc:creator>
		<pubDate>Wed, 23 Apr 2014 06:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-323265</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-312018&quot;&gt;Kai&lt;/a&gt;.

Dear Yair,
I can confirm that this problem holds. Tested in R2012b &#038; R2014a. The error message arises from calling propertiesGUI with no arguments (in &quot;demo mode&quot;). If I supply a MATLAB structure as an argument, it seems to work fine.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-312018">Kai</a>.</p>
<p>Dear Yair,<br />
I can confirm that this problem holds. Tested in R2012b &amp; R2014a. The error message arises from calling propertiesGUI with no arguments (in &#8220;demo mode&#8221;). If I supply a MATLAB structure as an argument, it seems to work fine.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-321539</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 04 Apr 2014 14:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-321539</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-321531&quot;&gt;Rainer Ng&lt;/a&gt;.

@Rainer - it&#039;s good to hear from you again and thanks for the update!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-321531">Rainer Ng</a>.</p>
<p>@Rainer &#8211; it&#8217;s good to hear from you again and thanks for the update!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rainer Ng		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-321531</link>

		<dc:creator><![CDATA[Rainer Ng]]></dc:creator>
		<pubDate>Fri, 04 Apr 2014 13:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-321531</guid>

					<description><![CDATA[Hi Yair, nice to see CHAMP being used as an example here :)

Problems arose after upgrading to 2014a and from talking to the tech support,
&lt;pre lang=&#039;matlab&#039;&gt;set(hProp,&#039;UserData&#039;,propName)&lt;/pre&gt;
 is problematic. According to them, &quot;.....The &#039;&lt;b&gt;UserData&lt;/b&gt;&#039; property has been removed from the &#039;DefaultProperty&#039; Java class in R2014a and this is an undocumented internal MATLAB component. One way to work around this would be to use a property which is defined for both versions of MATLAB like &#039;&lt;b&gt;Description&lt;/b&gt;&#039;. You could use the SET and GET functions to set and query values....&quot;]]></description>
			<content:encoded><![CDATA[<p>Hi Yair, nice to see CHAMP being used as an example here 🙂</p>
<p>Problems arose after upgrading to 2014a and from talking to the tech support,</p>
<pre lang='matlab'>set(hProp,'UserData',propName)</pre>
<p> is problematic. According to them, &#8220;&#8230;..The &#8216;<b>UserData</b>&#8216; property has been removed from the &#8216;DefaultProperty&#8217; Java class in R2014a and this is an undocumented internal MATLAB component. One way to work around this would be to use a property which is defined for both versions of MATLAB like &#8216;<b>Description</b>&#8216;. You could use the SET and GET functions to set and query values&#8230;.&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jan		</title>
		<link>https://undocumentedmatlab.com/articles/propertiesgui#comment-313114</link>

		<dc:creator><![CDATA[Jan]]></dc:creator>
		<pubDate>Sat, 08 Feb 2014 18:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3511#comment-313114</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/propertiesgui#comment-313068&quot;&gt;Jan&lt;/a&gt;.

Ah, okay. I was not aware of that as I work on 2012b. This explains a lot!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/propertiesgui#comment-313068">Jan</a>.</p>
<p>Ah, okay. I was not aware of that as I work on 2012b. This explains a lot!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
