Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Help with creating matrix from another matrix' topicStudent Support Forum > General > Archives > "Help with creating matrix from another matrix"

Next Comment >Help | Reply To Topic
Author Comment/Response
Anton Siswo
03/24/13 01:15am

Hello everyone here.....

I have problem here, I have a matrix 16x24, lets call it matrix A. There is Matrix B 24x24 which depend on the reading row and column with values from Matrix A.

Here are link for matrix A (also in attachment): https://docs.google.com/file/d/0B-dcMNCq0QF8OTdPMS1WRVNxb1k/edit?usp=sharing

After that, I want to create matrix C, consist of matrix 150x150.

The rule are below here:

1. Matrix C formed from matrix A.
2. Each row and column from matrix C are read the values from matrix A for each row, not the entire matrix. If there is no values from matrix A (based on the tables) from each row from matrix A, such as A[1,100] then the value in C[1,100] is 0. For examples, row and column in matrix C [49,50] are formed from matrix A, for 49 in [8,1];[7,10];[4,13];[3,22] and for 50 in [8,2];[7,11];[4,14];[3,23]. I'm already using Position command in mathematica.
3. After that, get the column value only from matrix C for 49 and 50. It should be like this, for 49-> 1,10,13,22 and for 50 -> 2,11,14,23.
4. When we already got the column value for 49 and 50, we are forming the value from point 3 into [1,2];[10,11];[13,14];[22,23]. this 4 new elements are taking the value from matrix B in B[1,2];B[10,11];B[13,14];B[22,23].
5. After finished taking the value in matrix B, we sum it. So it should be sum of values from B[1,2] + B[10,11] + B[13,14] + B[22,23].
6. When finished, we take the result in matrix C. So, it should be C[49,50] = value from B[1,2] + B[10,11] + B[13,14] + B[22,23].
7. It goes along the way for matrix C starting from [1,1] until [150,150] using the rules before.

So, my question is how to implement it in mathematica? I'va been stuck for a month, because of this algorithm.

Thank you very much and I do sorry for my bad grammar.

Attachment: MatrixAssembly.png, URL: ,

Subject (listing for 'Help with creating matrix from another matrix')
Author Date Posted
Help with creating matrix from another matrix Anton Siswo 03/24/13 01:15am
Re: Help with creating matrix from another matrix Bill Simpson 03/24/13 11:53pm
Re: Re: Help with creating matrix from another ... Anton Siswo 03/25/13 11:35am
Re: Re: Re: Help with creating matrix from anot... Bill Simpson 03/25/13 7:32pm
Re: Re: Re: Help with creating matrix from anot... Bill Simpson 03/25/13 10:20pm
Re: Re: Re: Re: Help with creating matrix from ... Anton Siswo 03/31/13 7:22pm
Re: Re: Re: Re: Re: Help with creating matrix f... Bill Simpson 04/01/13 00:06am
Re: Re: Re: Re: Re: Re: Help with creating matr... Anton Siswo 04/01/13 5:52pm
Re: Re: Re: Re: Re: Help with creating matrix f... Bill Simpson 04/01/13 10:44am
Re: Re: Re: Re: Re: Re: Help with creating matr... Anton Siswo 04/08/13 04:52am
Re: Re: Re: Re: Re: Re: Re: Help with creating ... Bill Simpson 04/09/13 8:35pm
Re: Re: Re: Re: Re: Re: Re: Re: Help with creat... Anton Siswo 04/11/13 10:58am
Re: Re: Re: Re: Re: Re: Re: Help with creating ... Bill Simpson 04/09/13 9:54pm
Re: Re: Re: Re: Re: Re: Re: Re: Help with creat... Anton Siswo 04/10/13 9:41pm
Re: Re: Re: Re: Re: Re: Re: Re: Re: Help with c... Bill Simpson 04/12/13 00:35am
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Help wi... Anton Siswo 04/16/13 07:19am
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Hel... Bill Simpson 04/16/13 7:48pm
Re: Help with creating matrix from another matrix Anton Siswo 03/26/13 11:29pm
Next Comment >Help | Reply To Topic