10 minutes average for four hours data
Afficher commentaires plus anciens
3793.197 3793.19735 3793.1977 3793.19805 3793.1984 3793.19875 3793.1991 3793.19945 3793.1998 3793.20015 3793.2005 3793.20085 3793.2012 3793.20155 3793.2019 3793.20225 3793.2026 3793.20295 3793.2033 3793.20365 3793.204 3793.20435........etc i have a data set for four hours....these datas are taken in 15 seconds interval and for four hours i will have 720 datas .....for the first hour i need to calculate average for first 10 minutes and remaining 50 minutes no need to calculate average and again for second hour, first 10 minutes i need to calculate average and so on til the completion of four hours.......since i m a beginner in matlab .....i need a help sir to write a matlab code for 10 minutes average for four hours data....
3 commentaires
Azzi Abdelmalek
le 29 Oct 2012
why 720, in 4 hours you will have 4 * 60 *4 =960
Walter Roberson
le 29 Oct 2012
Please do not name individuals in your Tags. Please retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
PRIYA
le 30 Oct 2012
Réponse acceptée
Plus de réponses (2)
Sachin Ganjare
le 29 Oct 2012
0 votes
A=rand(960,1);
A=reshape(A,240,4);
A_OUT=mean(A(1:40,:))
Sachin Ganjare
le 30 Oct 2012
0 votes
A=rand(720,1);
A=reshape(A,240,3);
A_OUT=mean(A(1:40,:))
3 commentaires
Sachin Ganjare
le 30 Oct 2012
For your 3hrs requirment, above code will suffice.
PRIYA
le 30 Oct 2012
Andrei Bobrov
le 30 Oct 2012
A=rand(720,1);
A=reshape(A,240,[]);
A_OUT=mean(A(1:40,:));
Catégories
En savoir plus sur Manage Products dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!