Hello, I am trying to average together several vectors of slightly different lengths (difference might be one or two elements).
For example, a, b, c might be: a = ones(10)*2. b = ones(11)*5. c = ones(12)*4. I want to make a new vector d that contains the averages of all their values considering that for the 11th element I just have to average the b and c’s values, and for the 12th value I only want c’s value. Is there an easy way to do this? Consider I want to do this for n vectors with n a big number (let’s say at least 100).
