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"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Anton Siswo
04/16/13 07:19am

In Response To 'Re: Re: Re: Re: Re: Re: Re: Re: Re: Help with c...'
---------
Hi, I'm so sorry, I made you waiting in a long time.

I had found the answers, but i could not finish running it. this code already consume my 6GB of RAM.

The code are also attached in attachment.

Table[Table[
Table[{Last[Position[assembly[[k, All]], i]],
Last[Position[assembly[[k, All]], j]]}, {j, 150}], {i, 150}], {k,
16}]

Its build matrix [150x150] automatically and I made it sixteen time automatic too. But, when I gonna get the value of matrix from [24x24], this code made exhausted my computer.

Plus @@ Table[
Table[Table[{Last[Position[assembly[[k, All]], i]],
Last[Position[assembly[[k, All]], j]]}, {j, 150}], {i, 150}], {k,
16}]

I also already made auto sum for this matrix, so it will be produces single matrix 150x150.

when i made this code:
KElement1[[Last[Position[assembly[[1, All]], 1]],
Last[Position[assembly[[1, All]], 2]]]]

I test it to get the value from single position. but when i made this for single rows reading:
Table[Table[
KElement1[[Last[Position[assembly[[1, All]], i]],
Last[Position[assembly[[1, All]], j]]]], {j, 150}], {i, 150}]

it never completed. So i do not sure when I repeated automatically for 16 rows, it will be also successful.

For the KElement1, you could made a random values of matrix [24x24].

In the attachment, I also give you the values of matrix KElement1.

I hope this code could be efficient so much, so it would not exhausted my computer.


Thank you so much for your helps.

Attachment: codes-assemblies.nb, 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
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic