| Author |
Comment/Response |
Anthony
|
09/05/09 05:34am
M4 = {{9}, {9}, {10}}
M2 = {{0, 2, 5}, {2, 1, 1}, {3, 1, 0}}
M5 = ReplacePart[M2, {_, 1} -> M4 {i}]
Output: {{{i} {{9}, {9}, {10}}, 2, 5}, {{i} {{9}, {9}, {10}}, 1,
1}, {{i} {{9}, {9}, {10}}, 1, 0}}
How can i replace M2's column 1 with M4 such that it show {{9, 2, 5}, {9, 1, 1}, {10, 1, 0}}
Thanks
URL: , |
|