필터 지우기
필터 지우기

How to plot the data array in dynamic?

조회 수: 2 (최근 30일)
Qingying Tu
Qingying Tu 2018년 6월 11일
댓글: Walter Roberson 2018년 6월 12일
Each time a data packet is received,you need update the data display,data packet length is about eighty.
  댓글 수: 8
Walter Roberson
Walter Roberson 2018년 6월 12일
You need to preallocate y. You are adding more memory to y every iteration of "i".
Walter Roberson
Walter Roberson 2018년 6월 12일
Note that at 0.4ms per packet, that you would be trying to process 2500 packets per second. For each packet you process, you try to do a graphics update. Unless your graphics display can handle 2500 frames per second, your graphics system is not going to be able to keep up.
If you want real-time graphics updates, you should gather together data corresponding to (say) 50 frames per second (so about 500 packets) and only update the graphics object once per group. That is about 500*81 which is over 40000 points per frame, and even if you have a super wide monitor you will never be able to display that many points per frame. So you need to decide how you want to update your display when the number of data points you receive per second is considerably more than the number of data points you can display per second.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by