MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > for loop outputs 

Hi, I need some help building on the simple code i made below. this averages the values in column 6 by year (:,2) in the the matrix A. there is generally a data point for every day in each year, however some points are missing. 
Please help with this problem. I am not yet proficient enough this out. 
"Dave " <yogi_cave@yahoo.com> wrote in message <gouo0t$c2g$1@fred.mathworks.com>... 
"Dave " <yogi_cave@yahoo.com> wrote in message <gouo0t$c2g$1@fred.mathworks.com>... 
Thanks a lot for the help, despite my lame explanation you got it! I see what I was doing wrong. I needed to make a matrix the correct size to store the results, in this case the matrix 'i'. And as yr is a logical array, they are all one, and summing this will give the number of values. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.