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 Kommentare

Walter Roberson
Walter Roberson am 31 Jan. 2012
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
kash
kash am 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 am 31 Jan. 2012
How did you arrive at the "30" in 90 89 30 ?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 31 Jan. 2012

0 Stimmen

out = [CLL_combinations(:,1:2,:) mean(CLL_combinations(:,3:end,:),2)]

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by