Brain Imaging and ECG Graph

5 views (last 30 days)
Rachel Reyes Reimon
Rachel Reyes Reimon on 13 Nov 2020
Commented: Adam Danz on 14 Nov 2020
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
Rachel Reyes Reimon
Rachel Reyes Reimon on 14 Nov 2020
I don’t need help with the ct imaging which is controlled by the slider. I need more help with the ecg moving plot. Which is controlled by the toggle button. It says start ecg at first then when pressed it will start the plotting. The if pressed again it will stop and then resume until finished. But I don’t know how to make the moving graph. It looks like it’s adding little dots and that’s what is making the graph
Adam Danz
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

Sign in to comment.

Answers (0)

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!