Brain Imaging and ECG Graph
5 views (last 30 days)
Show older comments
Hello there,
I am doing a gui where i am supposed to make a GUI program that will display CT images from .tif files in a window and in another the ‘Start ECG’ toggle-button will be showing a moving ECG window for a given window size. The graph has to be moving and I have no idea where to even start coding for this. We were given the variables
ann
ecgsig ; and
tm
inside this file mit200
we are also given the window length and ecg filtered signal
- load mit200;
- windowLength=600;
- ecgsigfiltered=movmean(ecgsig,20);
Pause 0.05 second during moving window in between 'plot' calls.
I guess my question is really knowing how to plot moving graphs .... Any help with this is greatly appreciated.

3 Comments
Adam Danz
on 14 Nov 2020
So many questions and unknowns.
- What is being animated? Data points being plotted on top of the image?
- Where do these data come from?
- How are the data stored? In cell arrays, columns within a matrix, a compex structure?
- Are you referring to the plot on the left with blue points?
There are several animation methods
including a simple loop that updates the x and y coordinate data of a line object.
See this answer for general approaches to animation
Answers (0)
See Also
Categories
Find more on Convert Image Type 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!