Create a buffer matrix for continuous measurements

后端 未结 4 1210
野趣味
野趣味 2020-12-06 14:56

I\'m starting programming in MATLAB and I have some problems creating a buffer matrix. I\'m trying to do the following:

I\'m continuously obtaining an image from a w

4条回答
  •  时光取名叫无心
    2020-12-06 15:28

    When you're talking about large data sets on each iteration, the data shuffle can start taking up some time. The way I handle it for large data sets is to use something like:

    circBuff(:,:,mod(counter,numFrames)) = newData; This way you only overwrite data once, rather than moving every data point in your entire buffer on each cycle. You just have to be a bit more savvy about how you access your data.

    HTH, Dan

提交回复
热议问题