```Date: Mon, 26 Jan 2009 13:07:34 -0600 Reply-To: "./ ADD NAME=Data _null_;" Sender: "SAS(r) Discussion" From: "./ ADD NAME=Data _null_;" Subject: Re: matrix vector Comments: To: hd In-Reply-To: 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 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 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