matlab - getting mean value of sensor for given runs -
given number of sensor values measured @ each of 100 runs.
= 8 7 8 9 8 8 8 8 9 8 to display value of specific runs (let every 5 runs)
the code is:
c= b(1:5:end); c= 8 8 what want store average of 5 runs how that?
answer should = 8 8.2
i don't have matlab @ hand, try mean(reshape(b,5,[])).
Comments
Post a Comment