[R] exponentiate elements of a whole matrix

Maas James Dr (MED) J.Maas at uea.ac.uk
Wed Oct 13 12:51:39 CEST 2010


I've tried hard to find a way to exponentiate each element of a whole matrix such that if I start with A

A = [ 2   3
      2   4]

I can get back B

B = [ 7.38   20.08
      7.38   54.60]

I've tried

B <- exp(A) but no luck.

Thanks

J


===============================
Dr. Jim Maas
University of East Anglia



More information about the R-help mailing list