On 04/06/2016 6:25 AM, fmri wrote:
> Hi all,
> I have different matrices each contain 6 vectors : e,g,
>>> S1
> 1 1 1 1 1 1 2 2 2 2 2 2 2 3 2 3 2 3
>
>>> S2
> 1 2 1 1 1 1 2 2 3 2 2 2 2 5 2 3 2 6
> .
> .
> .
>>> S15
> 1 2 1 1 1 1 2 2 3 2 2 2 2 5 2 8 2 7
>
> I would like to calculate the mean of each corresponding column :
>
...
mean([S1;S2;S15])
BUT!! Don't create multiple variable with numeric postfixes and you
wouldn't have the referencing issues; use arrays or name fields in
structures or similar techniques instead.
--