On Thu, 29 Apr 1999, Steve Friedman wrote:
> I have a matrix and I need to multiply every element in the matrix the
> column number of the
> matrix. Solutions seem to be avoiding me, help is greatly appreciated.
If m is a matrix, you want m * col(m). Simple!
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|