Creating a slider when real time plotting
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello I'm plotting sensor measurements in real time, after a while the data gets so cramped and hard to read. I'd like to create a slider that will enable me to scroll through the date (x axis) in a fixed window (say 10 secs), zooming it in to allow clearer display. Is that possible with matlab? I tried the following link which displays a slider for a sine wave with fixed length, I just don't know how to make it work with real time plotting.
regards I.H
0 Kommentare
Antworten (3)
khan
am 5 Jan. 2017
to my understanding i think you need a sliding window of 10 sec sliding window mean, if yes, then you can create sliding window for taking average of the data on each 10 seconds.
1 Kommentar
khan
am 5 Jan. 2017
ax = findobj(gcf,'type','axes','tag',''); set(ax,'XLim',[250 300]); %here instead of [250 300] you can specify your own time window/s
after plotting your data, just specify the time interval you want zoom in to and run these two lines. it will zoom in the already plotted data to the time specified region.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!