fixed e_matrix.rb
merged e_matrix.rb