You could experiment with MATBUILD to convert to a dynamic array, then using the start (and maybe end) options with MATPARSE to put it into the appropriate location in the dimensioned array.
----- Original Message ----- From: "Stuart Boydell" <[EMAIL PROTECTED]> Date: Wed, 9 Jun 2004 14:51:29 +1000 To: "U2-Users" <[EMAIL PROTECTED]> Subject: [U2] how to assign dimensioned array to a matrix? > I want to be able to store a set of dimensioned data at any given position > in a matrix. Equivalent to storing a java Array in a Vector. > > In basic something like... > > dim rec(17) > dim rec.store(9,17) > mat rec.store = '' > pos = 0 > ... > matread rec from f.file,id then > pos += 1 > mat rec.store(pos) = rec ;*// assign fails > end > > Obviously this won't compile because of the mat assignment statement but > hopefully it shows what I am trying to acheive. What I wondered was if there > are any tricks so that it could be done without resorting to element by > element loops? > > -- > Cheers, > Stuart Boydell > > > > > > > > > > > > > > > > > > > > ********************************************************************** > This email message and any files transmitted with it are confidential > and intended solely for the use of addressed recipient(s). If you have > received this email in error please notify the Spotless IS Support Centre (61 3 9269 > 7555) immediately who will advise further action. > > This footnote also confirms that this email message has been scanned > for the presence of computer viruses. > ********************************************************************** > ------- > u2-users mailing list > [EMAIL PROTECTED] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
