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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -