| Author |
Comment/Response |
Xavier
|
05/29/08 1:26pm
Hey,
You can try this:
Map[If[Extract[A, #] == 0, Extract[B, #], Extract[A, #]] &, Table[{i, j}, {i, Length[A]}, {j, Length[B]}], {2}]
Instead of doing a mapping on A or B, you can do a mapping on the set of {i,j}, coordinates. You must use extract in such a case, and not part.
This is a possibility among many others.
Cheers,
Xavier
URL: http://xroudaut.free.fr, |
|