|
In article <g1kotu$om5$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>I would like to do this
>a=ones(100,100);
>imshow(a);
>%click the "link" button on the figure
>%modify a
>%the image is automatically updated because it is linked to a
>Is this possible? Also, how do you programmatically link
>plots with regular data (replacing the "click link" step in
>the above example)?
It does not appear to be possible for images.
It also does not appear to be possible for line() objects
or patch() objects. It is, though, possible for lineseries
objects such as are created by plot().
newy = rand(1,17);
bar = plot(rand(1,17),newy);
set(bar,'YDataSource','newy');
newy = sind(0:pi:21);
refreshdata(bar,'caller');
It is allowed to use quoted expressions for the YDataSource, such as
set(bar,'YDataSource','newy(5,:)')
--
"When we all think alike no one is thinking very much."
-- Walter Lippmann
|