matrix.setfield() method, all matrix fields are set to a value that is passed as a parameter.
Return: new matrix having the value passed as parameter
Example # 1:
In this example we see that
matrix.setfield () is used to generate a new matrix, the value of which is passed to as a parameter in this method.
code > Exit:
[[2 2] [2 2]]
Example # 2:
[[25 25 25] [25 25 25] [25 25 25]]