YOu have multiple ways to do this.....
- Create the time stamps you want...find the respective indices using ismemebr and do the sum.
- Split the tdate vectors you have into respective months, years and pcik what you want and do the sum.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!