New answers tagged

0 votes

Changing value of specific element in an array. (Converting code from MATLAB to Mathematica)

Some more possibilities to change matrix values m = Array[0 &, {5, 4}]; Using MapAt ...
eldo's user avatar
  • 62k
1 vote

Set value in a list at given position

r = Array[Total[{##}] &, {3, 3}]; pos = {{1, 1}, {2, 2}}; vals = {100, 200}; To set the value of r in place we can use <...
eldo's user avatar
  • 62k

Top 50 recent answers are included