Mean Of Array Matlab
Mean Of Array Matlab . So, the first thing to do is to convert your 2d cell array of 1d vectors into a 3d matrix. This worked great for my first few variables which were consecutive. Matlab colon operator diagram Programmer Sought from programmersought.com Therefore, use the mean function and index into the first column for all rows and slices. Averg = mean (vect) output: Vect = [1 3 5];