| Author |
Comment/Response |
yehuda ben-shimol
|
05/30/08 06:14am
Hi,
The expression has a wrong syntax
here is the solution
matrixa = {{0, 1, 0, 2}, {0, 0, 1, 1}};
matrixb = {{a, b, c, d}, {a, b, c, d}};
MapThread[If[#1 != 0, #1, #2] &, {matrixa, matrixb}, 2]
and the computed result
{{a, 1, c, 2}, {a, b, 1, 1}}
yehuda
URL: , |
|