필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Running a long program while plotting slows down the program. How can I make it so that Matlab doesn't store so much data in the figure?

조회 수: 2 (최근 30일)
Hi, friends! I'm building a program that has to collect data and plot it for a long period of time (sometimes ranging past a week). However, the problem is it slows down when it runs for even more than a few hours. This causes problem with the data as it needs to be collected every second.
Converting data into single precision helped slightly, but the main problem is that Matlab is still storing lots of data somewhere, causing it to slow down. My best guess is the plot itself (which needs to display a 10 window), however, I cannot access it.
Is there a way to access the plot's data and compress it? Is there something else I should be looking at?
Thanks!
Edit: I have not profiled me code yet. I will do that and get back with what section is causing the slowdown.
  댓글 수: 3
Rodmehr Semnani
Rodmehr Semnani 2016년 1월 26일
I have not. I'll run it for a long period today and I'll get back to you. However, the code runs perfectly fine up until I reach around 2-5 hours (depending on my sampling rate).
Thanks for your input though! Profiling my code should've really been the first place I looked.
Walter Roberson
Walter Roberson 2016년 1월 26일
If you cannot access the plot, then how could the data for the plot possibly be compressed?
Is it a line plot?
Which MATLAB version are you using?

답변 (1개)

Daniel Armyr
Daniel Armyr 2016년 2월 3일
This file exchange entry should help you plot even large data without significant slow-down.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by