I have a matrix of y=[9, 5346]
I want to find the the mean of every six values of each row. I tried this function but can't really figure out how to do it
for ii=1:9 oo(ii)=accumarray(1:6:5346,y(ii,:),,[],@mean); end
it's saying there is error in this code . I don't really know how this accumarray works.
Any help is appreciated
Best Answer