Hi everyone,
In Matlab is there any way to plot bar graphs in real-time?

Antworten (1)

Image Analyst
Image Analyst am 6 Mär. 2022

0 Stimmen

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Mär. 2022

Beantwortet:

am 6 Mär. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by