matlab - Create a buffer matrix for continuous measurements -


I am starting programming in the catalog and there are some problems in making me a buffer matrix. I am trying to do the following:

I am constantly getting an image from the webcam and after the partition I get the center of a moving target. I need to store the data of the center for processing, but I do not want it to occupy too much memory. For example, if I had a time t = inf , then I would have a matrix Thinking of storing 10 time points of data such as a circular buffer, writing and erasing old data, because I need work with both, actual data in time (t) and data before time (T- 1).

  buffsize = 10; Cirquef = Nain (1, Buffets); For the latest = 1: 1000; Circbuff = [Latest Circumb (1: and -1)] End  

I tested it, does not take any significant time to run in MATLAB. Profiler did not get any hindrance with the code.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -