From: Marcio Braga Date: 2008-08-05T10:18:42+09:00 Subject: Matrix class: How to set a single element ? 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 -- Posted via http://www.ruby-forum.com/.