<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: A Link to the Data</title>
	<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/</link>
	<description>Ken &#38; Mike work on the MATLAB Desktop team</description>
	<pubDate>Sun, 08 Nov 2009 05:41:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6276</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 02 Jun 2009 11:57:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6276</guid>
		<description>Huijing,

This is the correct behavior since:
&lt;ul&gt;
&lt;li&gt;the x and y variables are two columns of the same variable&lt;/li&gt;
&lt;li&gt;brushing linked variables always applies to entire rows&lt;/li&gt;&lt;/ul&gt;

We think you can do what you want by creating two different variables, one for each column and then only linking one of them as follows:

&lt;pre class="code"&gt;
x = rand(10,1);
y = randn(10,1);
plot(x,y);
linkdata
&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Click on the Edit... link of the linked plot bar to ensure that only one of the variables (say x) is linked&lt;/li&gt;
&lt;li&gt;Brush the points of interest and replace them with NaN&lt;/li&gt;
&lt;li&gt;NaNs should only be added to the linked variable (x)&lt;/li&gt;
&lt;/ol&gt;

So, to reiterate, the x &#038; y values should be in separate variables.</description>
		<content:encoded><![CDATA[<p>Huijing,</p>
<p>This is the correct behavior since:</p>
<ul>
<li>the x and y variables are two columns of the same variable</li>
<li>brushing linked variables always applies to entire rows</li>
</ul>
<p>We think you can do what you want by creating two different variables, one for each column and then only linking one of them as follows:</p>
<pre class="code">
x = rand(10,1);
y = randn(10,1);
plot(x,y);
linkdata
</pre>
<ol>
<li>Click on the Edit&#8230; link of the linked plot bar to ensure that only one of the variables (say x) is linked</li>
<li>Brush the points of interest and replace them with NaN</li>
<li>NaNs should only be added to the linked variable (x)</li>
</ol>
<p>So, to reiterate, the x &#038; y values should be in separate variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huijing</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6252</link>
		<dc:creator>huijing</dc:creator>
		<pubDate>Wed, 20 May 2009 16:02:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6252</guid>
		<description>Hello Mike,
I used brush and link to set some data points to NaN, my original data is a 480*2 matrix, and I took its first column as x, second column as y to plot. like,  plot(ROT_cap(:,1),ROT_cap(:,2),'o')

since I just want to set the second column of selected points to NaN, I only set link with second column, but it turned out the two columns were changed. 

Is this just the way it should be? Thanks!</description>
		<content:encoded><![CDATA[<p>Hello Mike,<br />
I used brush and link to set some data points to NaN, my original data is a 480*2 matrix, and I took its first column as x, second column as y to plot. like,  plot(ROT_cap(:,1),ROT_cap(:,2),&#8217;o')</p>
<p>since I just want to set the second column of selected points to NaN, I only set link with second column, but it turned out the two columns were changed. </p>
<p>Is this just the way it should be? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6024</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 15 Dec 2008 14:30:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6024</guid>
		<description>Param,

You can access the brushed data through the "BrushData" instance property of the graphic objects being brushed. For example:

&lt;pre&gt;
plot(randn(100,1));
% Brush some data, then get the line on the plot 
l = get(gca,'children'); 
% Get the BrushData instance prop for the line
get(l,'BrushData')
&lt;/pre&gt;
Note that the "BrushData" property is *not* documented. That means that the name or data type may change in a future release so don't depend on it.</description>
		<content:encoded><![CDATA[<p>Param,</p>
<p>You can access the brushed data through the &#8220;BrushData&#8221; instance property of the graphic objects being brushed. For example:</p>
<pre>
plot(randn(100,1));
% Brush some data, then get the line on the plot
l = get(gca,'children');
% Get the BrushData instance prop for the line
get(l,'BrushData')
</pre>
<p>Note that the &#8220;BrushData&#8221; property is *not* documented. That means that the name or data type may change in a future release so don&#8217;t depend on it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Param</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6017</link>
		<dc:creator>Param</dc:creator>
		<pubDate>Wed, 10 Dec 2008 10:43:22 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-6017</guid>
		<description>How do i retrive brushed data?
For e.g. I have a plot and use the brush tool to select some points on the plot how do i get access to data selected?
Thanks in advance</description>
		<content:encoded><![CDATA[<p>How do i retrive brushed data?<br />
For e.g. I have a plot and use the brush tool to select some points on the plot how do i get access to data selected?<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-5994</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 19 Nov 2008 15:03:16 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-5994</guid>
		<description>@erkut,

 I am not sure what you are asking for. I think this may be it... a sample output from my timer example? 
&lt;img src="http://blogs.mathworks.com/images/desktop//michael_katz_linked_plots/att_animated.gif" width="500" height="436"/&gt;</description>
		<content:encoded><![CDATA[<p>@erkut,</p>
<p> I am not sure what you are asking for. I think this may be it&#8230; a sample output from my timer example?<br />
<img src="http://blogs.mathworks.com/images/desktop//michael_katz_linked_plots/att_animated.gif" width="500" height="436"/></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erkut</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-5992</link>
		<dc:creator>erkut</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:42:11 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-5992</guid>
		<description>Timer and Dynamic Images 
Give snapshots of the working program showing its proper work for testing examples - 5-6 snapshots</description>
		<content:encoded><![CDATA[<p>Timer and Dynamic Images<br />
Give snapshots of the working program showing its proper work for testing examples - 5-6 snapshots</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Owen</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4629</link>
		<dc:creator>James Owen</dc:creator>
		<pubDate>Mon, 19 May 2008 12:39:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4629</guid>
		<description>For Chee’s example, I’m not sure exactly why “x_remain” has not changed, but I would recommend removing the call to “linkdata on” from the deleteData function. It creates a dynamic link between the graphics and the variables “x”,”y” in the current workspace. When execution passes from the deleteData functional workspace back to the base workspace, those variables may no longer exist or may have changed, potentially causing the plot to update to reflect the changes.

For Greg’s point about linkdata for images, we agree that this would be good to do, and it definitely adds weight to the idea to hear customers ask for it specifically.</description>
		<content:encoded><![CDATA[<p>For Chee’s example, I’m not sure exactly why “x_remain” has not changed, but I would recommend removing the call to “linkdata on” from the deleteData function. It creates a dynamic link between the graphics and the variables “x”,”y” in the current workspace. When execution passes from the deleteData functional workspace back to the base workspace, those variables may no longer exist or may have changed, potentially causing the plot to update to reflect the changes.</p>
<p>For Greg’s point about linkdata for images, we agree that this would be good to do, and it definitely adds weight to the idea to hear customers ask for it specifically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Johnson</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4586</link>
		<dc:creator>Greg Johnson</dc:creator>
		<pubDate>Fri, 16 May 2008 13:47:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4586</guid>
		<description>It doesn't seem possible to do linkdata for images - which is a great shame!  Is this in the pipeline?</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t seem possible to do linkdata for images - which is a great shame!  Is this in the pipeline?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4345</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 30 Apr 2008 15:19:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4345</guid>
		<description>Chee,

 I am not able to help you further debug in this way. If you have maintenance on your license, you can contact tech support and perhaps someone there can walk through it with you. http://www.mathworks.com/support/service_requests/contact_support.do</description>
		<content:encoded><![CDATA[<p>Chee,</p>
<p> I am not able to help you further debug in this way. If you have maintenance on your license, you can contact tech support and perhaps someone there can walk through it with you. <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: chee</title>
		<link>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4323</link>
		<dc:creator>chee</dc:creator>
		<pubDate>Mon, 28 Apr 2008 21:50:43 +0000</pubDate>
		<guid>http://blogs.mathworks.com/desktop/2008/04/14/a-link-to-the-data/#comment-4323</guid>
		<description>Hi Mike,

I run the same code. x_remain is the same as origX although y_remain is different from origY.

Not sure what is wrong...

Thanks.

Sincerely,
Chee</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I run the same code. x_remain is the same as origX although y_remain is different from origY.</p>
<p>Not sure what is wrong&#8230;</p>
<p>Thanks.</p>
<p>Sincerely,<br />
Chee</p>
]]></content:encoded>
	</item>
</channel>
</rss>
