LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 26 Jan 2009 13:07:34 -0600
Reply-To:     "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Subject:      Re: matrix vector
Comments: To: hd <heenagd@gmail.com>
In-Reply-To:  <b4f37249-5c6a-4589-acca-64feb12d4d52@p2g2000prn.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

J Function creates a matrix of identical values J( nrow<, ncol<, value>>)

On 1/26/09, hd <heenagd@gmail.com> wrote: > On Jan 23, 3:31 pm, bgji...@GMAIL.COM (baogong jiang) wrote: > > a=[1 2 3 4]; > > temp=[1,1,1]; > > b_temp=temp*a; > > > > b=b_temp`; > > > > > > > > > > > > On Fri, Jan 23, 2009 at 1:26 PM, hd <heen...@gmail.com> wrote: > > > Hi, > > > > > I have a question on proc iml. I would like to know if I have a > > > vector > > > > > a = [ 1 2 3 4] > > > > > and I want to produce this matrix > > > > > b = > > > [1 1 1 > > > 2 2 2 > > > 3 3 3 > > > 4 4 4] > > > > > how do I do this? > > > > > Also how do I print the values on the log file > > > > > Any help is greatly appreciated. > > > > > Thanks > > > > -- > > Baoogng Jiang PH.D > > Office of Outcome Research & Evaluation > > University of Louisiana at Monroe- Hide quoted text - > > > > - Show quoted text - > > Appreciate your help. > How do I create temp matrix of 1s if its a big matrix liek say 6x20? > Thank you! >


Back to: Top of message | Previous page | Main SAS-L page