<?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: UDD Events and Listeners	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/udd-events-and-listeners/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=udd-events-and-listeners</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 07 Mar 2016 22:59:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Sebastian		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-371296</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Mon, 07 Mar 2016 22:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-371296</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984&quot;&gt;Yury Brodskiy&lt;/a&gt;.

Good news,

I just downloaded release 2016a and the following events are now available for axes:

&#039;ChildAdded&#039;, &#039;ChildRemoved&#039;, &#039;NodeChildAdded&#039;, &#039;NodeChildRemoved&#039;

They are all public, so this should be really useful.

Sebastian]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984">Yury Brodskiy</a>.</p>
<p>Good news,</p>
<p>I just downloaded release 2016a and the following events are now available for axes:</p>
<p>&#8216;ChildAdded&#8217;, &#8216;ChildRemoved&#8217;, &#8216;NodeChildAdded&#8217;, &#8216;NodeChildRemoved&#8217;</p>
<p>They are all public, so this should be really useful.</p>
<p>Sebastian</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370593</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 20:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-370593</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984&quot;&gt;Yury Brodskiy&lt;/a&gt;.

If you add the following commands to your list you will see that the last plot added will not trigger any event:
&lt;pre lang=&quot;matlab&quot;&gt;
plot(.5,.6,&#039;.&#039;); % axis limits change, MarkedClean-event is triggered
hold on;
plot(.5,.55,&#039;.&#039;); % axis limits do not change, MarkedClean-event is not triggered
&lt;/pre&gt;
In essence the MarkedClean event is only triggered if the appearance of the axis somehow changes. Concerning the other events mentioned in your link (I also checked to see if there are any additional events in 2015b) I don&#039;t think how they could be used to monitor the number of childs.

Sebastian]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984">Yury Brodskiy</a>.</p>
<p>If you add the following commands to your list you will see that the last plot added will not trigger any event:</p>
<pre lang="matlab">
plot(.5,.6,'.'); % axis limits change, MarkedClean-event is triggered
hold on;
plot(.5,.55,'.'); % axis limits do not change, MarkedClean-event is not triggered
</pre>
<p>In essence the MarkedClean event is only triggered if the appearance of the axis somehow changes. Concerning the other events mentioned in your link (I also checked to see if there are any additional events in 2015b) I don&#8217;t think how they could be used to monitor the number of childs.</p>
<p>Sebastian</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370571</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 11:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-370571</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984&quot;&gt;Yury Brodskiy&lt;/a&gt;.

In any case you can try any of the other axes events as described here: http://undocumentedmatlab.com/blog/undocumented-hg2-graphics-events]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984">Yury Brodskiy</a>.</p>
<p>In any case you can try any of the other axes events as described here: <a href="http://undocumentedmatlab.com/blog/undocumented-hg2-graphics-events" rel="ugc">http://undocumentedmatlab.com/blog/undocumented-hg2-graphics-events</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370570</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 11:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-370570</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370529&quot;&gt;Sebastian&lt;/a&gt;.

@Sebastian - I believe that you are mistaken: if you add a new point to an axes, even at the center, the &lt;code&gt;markedClean&lt;/code&gt; event is indeed triggered. For example:

&lt;pre lang=&quot;matlab&quot;&gt;
&gt;&gt; f = figure;  % new figure
&gt;&gt; a = axes;    % new axes
&gt;&gt; addlistener(a, &#039;MarkedClean&#039;, @(h,e)disp(e));
&gt;&gt; plot(.5,.5);  % new point at center of axes - triggers callback below:

  Update with properties:

       Source: [1x1 Axes]
    EventName: &#039;MarkedClean&#039;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370529">Sebastian</a>.</p>
<p>@Sebastian &#8211; I believe that you are mistaken: if you add a new point to an axes, even at the center, the <code>markedClean</code> event is indeed triggered. For example:</p>
<pre lang="matlab">
>> f = figure;  % new figure
>> a = axes;    % new axes
>> addlistener(a, 'MarkedClean', @(h,e)disp(e));
>> plot(.5,.5);  % new point at center of axes - triggers callback below:

  Update with properties:

       Source: [1x1 Axes]
    EventName: 'MarkedClean'
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-370529</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Thu, 25 Feb 2016 22:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-370529</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984&quot;&gt;Yury Brodskiy&lt;/a&gt;.

Hi,

I have come across the same problem with Matlab 2015b and have tried Yair&#039;s &quot;markedCleanCallback&quot; solution. Unluckily it does not work, since the MarkedClean event is only fired, if a new child to an axis changes the axis state. This means e.g. that if you plot a single point into the center of an existing axis the event will not be fired.

Since the properties &quot;Children&quot; and the events &quot;PostUpdate&quot; are not observable and protected, respectively, I don&#039;t see any way to monitor the state of axis children in HG2 at the moment.

Curious to see if anyone proves me wrong ...

Cheers

Sebastian]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-343984">Yury Brodskiy</a>.</p>
<p>Hi,</p>
<p>I have come across the same problem with Matlab 2015b and have tried Yair&#8217;s &#8220;markedCleanCallback&#8221; solution. Unluckily it does not work, since the MarkedClean event is only fired, if a new child to an axis changes the axis state. This means e.g. that if you plot a single point into the center of an existing axis the event will not be fired.</p>
<p>Since the properties &#8220;Children&#8221; and the events &#8220;PostUpdate&#8221; are not observable and protected, respectively, I don&#8217;t see any way to monitor the state of axis children in HG2 at the moment.</p>
<p>Curious to see if anyone proves me wrong &#8230;</p>
<p>Cheers</p>
<p>Sebastian</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Miguel Secundino		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-369511</link>

		<dc:creator><![CDATA[Miguel Secundino]]></dc:creator>
		<pubDate>Tue, 09 Feb 2016 22:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-369511</guid>

					<description><![CDATA[This discussion is the only place that I found with some relation with my question:
Could be possible minimize the Simulink editor window from Matlab?
I have spended a lot of time looking for some answer.
The reason is that I need open a Simulink block and after I need to hidde the editor window.
Thanks in advance.
M. Secundino]]></description>
			<content:encoded><![CDATA[<p>This discussion is the only place that I found with some relation with my question:<br />
Could be possible minimize the Simulink editor window from Matlab?<br />
I have spended a lot of time looking for some answer.<br />
The reason is that I need open a Simulink block and after I need to hidde the editor window.<br />
Thanks in advance.<br />
M. Secundino</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joan F. Alonso		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-367132</link>

		<dc:creator><![CDATA[Joan F. Alonso]]></dc:creator>
		<pubDate>Fri, 08 Jan 2016 15:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-367132</guid>

					<description><![CDATA[Dear Yair,
After reading Yury&#039;s post and your response, I am trying to do something similar to detect deleted children. But it turns out that I get a
&lt;pre lang=&quot;matlab&quot;&gt; 0x1 empty GraphicsPlaceholder array &lt;/pre&gt;
Is there any other way to detect if a user deleted a line or a patch?
Thank you! And Happy New Year, by the way!]]></description>
			<content:encoded><![CDATA[<p>Dear Yair,<br />
After reading Yury&#8217;s post and your response, I am trying to do something similar to detect deleted children. But it turns out that I get a</p>
<pre lang="matlab"> 0x1 empty GraphicsPlaceholder array </pre>
<p>Is there any other way to detect if a user deleted a line or a patch?<br />
Thank you! And Happy New Year, by the way!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-362719</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 28 Nov 2015 15:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-362719</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-362710&quot;&gt;John toscano&lt;/a&gt;.

Ha ???]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-362710">John toscano</a>.</p>
<p>Ha ???</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: John toscano		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-362710</link>

		<dc:creator><![CDATA[John toscano]]></dc:creator>
		<pubDate>Sat, 28 Nov 2015 12:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-362710</guid>

					<description><![CDATA[HOW CAN I MEET WITH THE MATRIX SOURCE

WHY IS YOUR INTERACTION OBSCURE]]></description>
			<content:encoded><![CDATA[<p>HOW CAN I MEET WITH THE MATRIX SOURCE</p>
<p>WHY IS YOUR INTERACTION OBSCURE</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vishnu S Nair		</title>
		<link>https://undocumentedmatlab.com/articles/udd-events-and-listeners#comment-348267</link>

		<dc:creator><![CDATA[Vishnu S Nair]]></dc:creator>
		<pubDate>Tue, 21 Apr 2015 09:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2200#comment-348267</guid>

					<description><![CDATA[Hi,
The discussion details helped me to solve my problem. But I have some doubts,
If I change the name of state or transition, how can I listen the events. I tried this below code:
&lt;pre lang=&#039;matlab&#039;&gt;
HG = sfgco;
hProp = findprop(HG,&#039;Name&#039;);
hListener = handle.listener(HG, hProp, &#039;PropertyPostSet&#039;, @lineCallback)
&lt;/pre&gt;

It listen the event when I right click and change LabelString in properties of Stateflow object. How can I listen when changing the name of Stateflow object from GUI.
Thank you in advance.]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
The discussion details helped me to solve my problem. But I have some doubts,<br />
If I change the name of state or transition, how can I listen the events. I tried this below code:</p>
<pre lang='matlab'>
HG = sfgco;
hProp = findprop(HG,'Name');
hListener = handle.listener(HG, hProp, 'PropertyPostSet', @lineCallback)
</pre>
<p>It listen the event when I right click and change LabelString in properties of Stateflow object. How can I listen when changing the name of Stateflow object from GUI.<br />
Thank you in advance.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
