Animating imagesc plots
13 views (last 30 days)
Show older comments
I'm trying to animate an imagesc plot using refreshdata, but with these plots, there is no 'CDataSource' property with which I can link the data I would like to change and the new values. Is there a way to link data sources in imagesc plots? I know that there is a 'CData' property but this doesn't seem to work (at least in the way I've tried).
I currently have an array, plot it using imagesc, and under the hold condition, include a for loop which includes the varying data as well as the refreshdata, pause and drawnow commands.
This is just meant to be a simple animation displaying a simple concept, so as long as I can just update this data that is fine. Any other method ideas for animating arrays would be greatly appreciated.
*Note: I have used the refreshdata method for animating plots in the past, only it was using the plot command (not imagesc) and I was using 2 data sources.
2 Comments
Jan
on 10 Jun 2011
What are "the varying data"? It would be helpful if you post the code, such that we can add the changes and do not have to create the whole code from scratch.
Answers (1)
See Also
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!