Real time bar graph plotting

조회 수: 3 (최근 30일)
DRISHYA S KUMAR P N
DRISHYA S KUMAR P N 2022년 3월 6일
답변: Image Analyst 2022년 3월 6일
Hi everyone,
In Matlab is there any way to plot bar graphs in real-time?

답변 (1개)

Image Analyst
Image Analyst 2022년 3월 6일
You can put the bar() function in a loop where you call it as soon as you've updated your data
for k = 1 : 10000
newBars = GetUpdatedData(); % Somehow get your new "live" data.
% Now that we have new data, plot it.
cla;
bar(newBars);
grid on;
end

카테고리

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