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 (September 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 1 Sep 2004 13:14:34 -0400
Reply-To:     K Fernandes <kafernan@UWATERLOO.CA>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         K Fernandes <kafernan@UWATERLOO.CA>
Subject:      IML - Defining matrices - is there a better way?
In-Reply-To:  <200409011622.i81GMpeG017383@listserv.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Hello,

I am using PROC IML to program a simulation. I would like to define a matrix, and I know this matrix will have four columns, but I do not know how many rows this matrix will have until run time, nor do I know what values are actually in this matrix until the program is run and sets them. How do I define such a matrix?

If I knew that I wanted 8 rows, then I was thinking of doing something like this:

srs={ [4] ., [4].,[4].,[4].,[4].,[4].,[4].,[4]. };

but since I don't always know that there will be 8 rows, I'm not sure what I should do. Any help would be greatly appreciated.

Thank you,

Kim


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