| Author |
Comment/Response |
yehuda ben-shimol
|
09/26/10 02:37am
you can assign values directly to parts of a matrix
so
mat = {{1, 2 + I, 3 + I, 4 + I}, {5, 6 + I, 7 + I, 8 + I}, {9, 10 + I,
11 + I, 12 + I}};
(mat[[All, 2 ;; 3]] = Map[f, mat[[All, 2 ;; 3]], {2}])
now check the result
mat//MatrixForm
for you case replace f with any meaningful function (you used Im)
yehuda
URL: , |
|