<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170107</link>
    <title>MATLAB Central Newsreader - Link data to an &quot;imshow&quot;</title>
    <description>Feed for thread: Link data to an &quot;imshow&quot;</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 28 May 2008 23:13:02 -0400</pubDate>
      <title>Link data to an &quot;imshow&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170107#434689</link>
      <author>David Doria</author>
      <description>I would like to do this&lt;br&gt;
&lt;br&gt;
a=ones(100,100);&lt;br&gt;
imshow(a);&lt;br&gt;
%click the &quot;link&quot; button on the figure&lt;br&gt;
%modify a&lt;br&gt;
%the image is automatically updated because it is linked to a&lt;br&gt;
&lt;br&gt;
Is this possible? Also, how do you programmatically link&lt;br&gt;
plots with regular data (replacing the &quot;click link&quot; step in&lt;br&gt;
the above example)?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Wed, 28 May 2008 23:54:02 -0400</pubDate>
      <title>Re: Link data to an &quot;imshow&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170107#434697</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g1kotu$om5$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
David Doria &amp;lt;daviddoria@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;I would like to do this&lt;br&gt;
&lt;br&gt;
&amp;gt;a=ones(100,100);&lt;br&gt;
&amp;gt;imshow(a);&lt;br&gt;
&amp;gt;%click the &quot;link&quot; button on the figure&lt;br&gt;
&amp;gt;%modify a&lt;br&gt;
&amp;gt;%the image is automatically updated because it is linked to a&lt;br&gt;
&lt;br&gt;
&amp;gt;Is this possible? Also, how do you programmatically link&lt;br&gt;
&amp;gt;plots with regular data (replacing the &quot;click link&quot; step in&lt;br&gt;
&amp;gt;the above example)?&lt;br&gt;
&lt;br&gt;
It does not appear to be possible for images.&lt;br&gt;
&lt;br&gt;
It also does not appear to be possible for line() objects&lt;br&gt;
or patch() objects. It is, though, possible for lineseries&lt;br&gt;
objects such as are created by plot().&lt;br&gt;
&lt;br&gt;
newy = rand(1,17);&lt;br&gt;
bar = plot(rand(1,17),newy);&lt;br&gt;
set(bar,'YDataSource','newy');&lt;br&gt;
newy = sind(0:pi:21);&lt;br&gt;
refreshdata(bar,'caller');&lt;br&gt;
&lt;br&gt;
It is allowed to use quoted expressions for the YDataSource, such as&lt;br&gt;
&lt;br&gt;
set(bar,'YDataSource','newy(5,:)')&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;When we all think alike no one is thinking very much.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Walter Lippmann</description>
    </item>
  </channel>
</rss>

