[S] Newbie question: Extracting rows of a matrix with positive

Kirthi Kalyanam (KKalyanam@mailer.scu.edu)
Fri, 20 Feb 1998 20:10:35 -0800


This is a very very basic question. We tried several things and looked up
online help and the programmers manual but could not locate anything
appropriate.

I want to extract all the rows of a matrix X that have positive elements in
it. For example if X is:

0, 1,-1
2,1,2
3,1,7

then I want to extract only lines 2 and 3.

Thanks for any suggestions. (By the way I am curious as to where in the
programmers manuals issues like this are covered).

--------------------------------------------------------------------------------------
Kirthi Kalyanam, Ph.D. - Asst. Professor & Associate Director
Retail Management Institute & Retail Workbench Research Center
Leavey School of Business & Administration - Santa Clara University
500 El Camino Real, Santa Clara, CA 95053
TEL: 408.554.2705 FAX:
408.554.5056

--------------------------------------------------------------------------------------

-----------------------------------------------------------------------
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