real time plot in gui
4 views (last 30 days)
Show older comments
hi!
I want some help with plotting.
I want to plot data in real time by using a GUI.The y-axe has amplitude and the x-axe has samples.
I want the x-axe to be updated after a specific amount of samples.
Firstly, it will be from 0 to 1000 and when it reaches the 1000 samples it will be updated in 1000 to 2000 and etc...
Any ideas?
0 Comments
Answers (1)
Geoff Hayes
on 8 Mar 2017
lafe - how will you obtain the samples? Do you generate them or read them from some device? In any case, you may want to use a timer that will periodically query for or generate your samples and then plot them to an axes within your GUI. If you are using GUIDE, then take a look at https://www.mathworks.com/matlabcentral/answers/284202-how-to-plot-a-real-time-signal-with-axes-automatically-updating which will hopefully give you an idea on how you may do this.
0 Comments
See Also
Categories
Find more on Graphics Performance 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!