필터 지우기
필터 지우기

real time plot in gui

조회 수: 2 (최근 30일)
lafe
lafe 2017년 3월 8일
답변: Geoff Hayes 2017년 3월 8일
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?

답변 (1개)

Geoff Hayes
Geoff Hayes 2017년 3월 8일
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.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by