You can just do D<-(A+B+C)/3.
Best regards,
Ondrej.

On 03/10/2009, ANJAN PURKAYASTHA <anjan.purkayas...@gmail.com> wrote:
>
> Hi all,
> Here is my problem:
> I have 3 matrices , A, B, C.
> Each is an nXn matrix.
> I need to create matrix D such that : D[i,j]= (A[i,j]+B[i,j]+C[i,j])/3.
> Being a newbie this is proving to be a challenge.
> Any ideas on how best to accomplish this?
> Thanks!
> Anjan
>
>
> --
> =============================
> anjan purkayastha, phd
> bioinformatics analyst
> whitehead institute for biomedical research
> nine cambridge center
> cambridge, ma 02142
>
> purkayas [at] wi [dot] mit [dot] edu
> 703.740.6939
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to