edit finding mean

13 views (last 30 days)
kash
kash on 4 Feb 2012
i used the code
out = [CLL_combinations(:,1:2,:) mean(CLL_combinations(:,3:end,:),2)]
i get output as
CLL_MEAN(:,:,1) =
83.0000 83.0000 0.6598
87.0000 87.0000 0.2103
;
;
;
CLL_MEAN(:,:,50) =
90.0000 90.0000 -0.1558
96.0000 96.0000 0.3872
i need only the third column to be displayed AS
CLL_MEANI=
0.6598
;
;
;
0.3872
PLEASE HELP
  1 Comment
Walter Roberson
Walter Roberson on 4 Feb 2012
See also the previous related question http://www.mathworks.com/matlabcentral/answers/27577-finding-mean

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Feb 2012
CLL_MEANI = reshape(CLL_MEAN(:,end,:), [], 1);

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!