Jump to content

Creating Array with dimension


vieira

Recommended Posts

QUOTE (vieira @ Feb 16 2009, 01:21 PM)

Yes, aleatory means random numbers between 1 to 10.

I need a matrix nxn, n rows and n columns (for example: 3x3, 4x4,5x5, 6x6, 7x7,....). The "n" must be entered by control.

Thank you.

hi

I got somewhat what do you want.Just find the attachment.If it's not help u plz explain ur requirement once again..

Link to comment

QUOTE (vieira @ Feb 16 2009, 07:21 AM)

Yes, aleatory means random numbers between 1 to 10.

I need a matrix nxn, n rows and n columns (for example: 3x3, 4x4,5x5, 6x6, 7x7,....). The "n" must be entered by control.

Thank you.

Ok, you've confirmed what I thought. Have you tried nesting two For Loops and building your array? Put your Random Number stuff inside the inner loop, wire the "n" control to the "N" terminals and wire the random number through both loops to a 2D array indicator on the outside (with indexing enabled in both loops, of course).

Jim

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.