Message Boards Message Boards

0
|
2683 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

extract a list by Tensor/Table

Hi, I have this table:

 resu = {{{0.101446, 0.922415}, {0.730893, 0.931288}, {0.294689, 0.977158}}, {{0.601446, 0.022415}, {0.202893, 0.931288}, {0.294689,0.977158}}}

Which is the method to create the matrix "AA" composed by only one element of each couples of "resu"? for exemple, for the second terms

{{0.922415, 0.931288, 0.977158},{0.022415,0.931288,0.977158}}

In[1]:= resu = {{{0.101446, 0.922415}, {0.730893, 0.931288}, {0.294689, 0.977158}}, {{0.601446, 0.022415}, {0.202893, 0.931288}, {0.294689, 0.977158}}};

In[5]:= resu[[All, All, 2]]

Out[5]= {{0.922415, 0.931288, 0.977158}, {0.022415, 0.931288, 0.977158}}

POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract