A=[10 11; 20 21; 30 31; 40 41; 60 61; 60 61; 70 71]
PB = [1 3 5]
B = [1 2 3 4 7]
C = A (B(PB),:)
D = mean(C)
A =
10 11
20 21
30 31
40 41
60 61
60 61
70 71
PB =
1 3 5
B =
1 2 3 4 7
C =
10 11
30 31
70 71
D =
36.667 37.667
No comments:
Post a Comment