matrix element division# Biology - 生物学
G*G
1 楼
A=[2, 3, 4,
2, 3, 4,
4, 6, 8];
B=[1, 6, 8,
2, 3, 4,
4, 3, 8]
how to do an element division in R to obtain a result as
C=A/B =[2, 0.5, 0.5
1, 1, 1,
1, 2, 1]
?
thank you very much.
2, 3, 4,
4, 6, 8];
B=[1, 6, 8,
2, 3, 4,
4, 3, 8]
how to do an element division in R to obtain a result as
C=A/B =[2, 0.5, 0.5
1, 1, 1,
1, 2, 1]
?
thank you very much.