M
Marcio Braga
simple code:
require 'matrix'
m1 = Matrix[[1,2],[3,4]]
Now I need to change element (0,0) from 1 to 5. I expected something
like the command below should work:
m1[0][0] = 5
... but the error message is '[]': wrong number of arguments (1 for 2)
(ArgumentError).
Could someone help me on that ?
Thank you
Marcio
require 'matrix'
m1 = Matrix[[1,2],[3,4]]
Now I need to change element (0,0) from 1 to 5. I expected something
like the command below should work:
m1[0][0] = 5
... but the error message is '[]': wrong number of arguments (1 for 2)
(ArgumentError).
Could someone help me on that ?
Thank you
Marcio