search for: multilply

Displaying 1 result from an estimated 1 matches for "multilply".

Did you mean: multilple
2007 Dec 31
1
help with matrix
....1660.239 0.8521.0011.0080.251 Last is matrixC: 0.5 1.0 0.5 1.0 1.0 1.0 1.0 0.5 1.0 1.0 1.0 0.5 1.0 1.0 1.0 0.5 0.5 0.5 1.0 0.5 What I want is to match both matrixA and matrixB with matrixC. Ignore the 1st column in matrixA and matrixB. When the element im matrixC is 1.0, multilply the corresponding element in matrixA by the corresponding element in matrixB. Otherwise, ignore it. I wrote the following code with some error in the logic: A<-read.table('matrixA.txt', header=F) B<-read.table('matrixB.txt', header=F) C<-read.table('matrixC.txt'...