Plotting "live" data inside while loop?
2 ビュー (過去 30 日間)
古いコメントを表示
I'm capturing data in real time, with 1 second interval. When I use "disp" command, I see correct values displayed and I want to plot them. However, MATLAB only starts plotting them after I pause the script. Is there a way to plot new data every second, replacing old? Do I need to use other function than "plot"?
hold on;
while true
% 3. Trigger radar chirp and get the raw data
[mxRawData, sInfo] = oRS.oEPRadarBase.get_frame_data;
ydata = mxRawData; % get raw data
disp(real(ydata));
plot(real(ydata));
end
0 件のコメント
回答 (1 件)
ahmed nebli
2018 年 12 月 6 日
i suggest you try using the function set like in the link bellow https://www.mathworks.com/help/matlab/ref/set.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!