From: dblack@... Date: 2003-01-28T23:05:44+09:00 Subject: Re: Questions from a Ruby Newbie (file io and data structures)... Hi -- On Tue, 28 Jan 2003 dblack@candle.superlink.net wrote: > require 'matrix' > fh = File.open("filename","r") > > m = Matrix[ * > Matrix[ * > fh.readlines.map {|l| l.chomp.split(',') } > ].column_vectors > ] Ummm, or: m = Matrix[ * fh.readlines.map {|l| l.chomp.split(',') } ].transpose (Thanks to Martin DeMello for pointing this out.) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav