matrix:set-and-report
matrix:set-and-report matrix row-i col-j new-value
Reports a new matrix, which is a copy of the given matrix except that the value at row-i,col-j has been changed to new-value. A NetLogo statement such as set mat matrix:set-and-report mat 2 3 10
will result in mat
pointing to this new matrix, a copy of the old version of mat with the element at row 2, column 3 being set to 10. The old version of mat
will be “lost”.
Take me to the full Matrix Extension Dictionary