Prev: accessing OO database using MATLAB
Next: Visual Studio Compiler and Linker Configuration for Matlab Engine
From: Eric on 29 Jan 2010 08:38 Hi all- I have a series of ascii files that show precipitation for a 1121x759 on a daily time step over the course of a year. I would like to calculate the sum of precipitation for each grid cell in one month intervals. sumOct = Oct1.asc + .... + Oct31.asc So far what I have is: d = dir('prec_2008.10*.asc'); for i = 1:length(d) precOCT2008=textread(d(i).name,'', -1,'headerlines',6); SUM_prec_2008_10 = add(d, 1:31) end any ideas? Thanks for your help- sprolese |