edit-finding mean

조회 수: 1 (최근 30일)
kash
kash 2012년 1월 31일
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
kash
kash 2012년 1월 31일
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 2012년 1월 31일
How did you arrive at the "30" in 90 89 30 ?

댓글을 달려면 로그인하십시오.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 1월 31일
out = [CLL_combinations(:,1:2,:) mean(CLL_combinations(:,3:end,:),2)]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interest-Rate Instruments에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by