edit-finding mean

5 views (last 30 days)
kash
kash on 31 Jan 2012
but walter i am getting only for first combinations,for next 49 combinations i am not getting anything
CLL_combinations(:,:,1) =
90.0000 90.0000 -0.1500 -0.5700 0.6300 0.6000 96.0000 96.0000 -0.0700 -0.1500 -0.0100 0.3000 ; ; ; ; CLL_combinations(:,:,50)
i have 50 combinations like this
  3 Comments
kash
kash on 31 Jan 2012
walter i have values as
CLL_combinations(:,:,1) =
90 89 10 20 30
56 89 2 4 6
;
;
;
;
;
CLL_combinations(:,:,50) =
89 96 1 2 3
80 70 2 4 6
i need output as
out=
90 89 30
56 89 4
;
;
;
;
89 96 2
80 70 4
i have to calcuate mean (calculating mean by leaving first 2 values)in above 3rd column is the mean
Walter Roberson
Walter Roberson on 31 Jan 2012
How did you arrive at the "30" in 90 89 30 ?

Sign in to comment.

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 31 Jan 2012
out = [CLL_combinations(:,1:2,:) mean(CLL_combinations(:,3:end,:),2)]

More Answers (0)

Community Treasure Hunt

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

Start Hunting!