Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Center of Matrix' topicStudent Support Forum > General > Archives > "Center of Matrix"

Next Comment >Help | Reply To Topic
Author Comment/Response
06/20/03 2:33pm


I am running into the following difficulty :

I need to create a big matrix which consists of 0's and a smaller one which [consists of 1's] in turn is in the middle of the bigger matrix.

My approach:

Table [Floor[Random[]],{n},{n}] ; *This denotes the big matrix which consists of 0's*
Now I am looking for an elegant way to superimpose the smaller matrix consisting of 1's onto the bigger one so that it is centered around the middle on the bigger matrix.

Thank you,


URL: ,

Subject (listing for 'Center of Matrix')
Author Date Posted
Center of Matrix George 06/20/03 2:33pm
Re: Center of Matrix Forum Modera... 07/16/03 3:02pm
Next Comment >Help | Reply To Topic