I guess I can understand why the dimension of the mean of a say 3-dimension 
array along the (say) third dimension is still a 3-dimensional array with a 
singleton (say) last dimension. But is there any better way to remove that 
dimension than:

d = 3
a = rand(3,5,10)
mu1 = mean(a,d)
mu = squeeze(mu1,d)

Reply via email to