Matrix to list mathematica

  • #1
2
0
Hi everyone:

I would like to join all elements of on matrix into just one list:

matrix =
1 2 3
4 5 6
7 8 9

into

list = {1,2,3,4,5,6,7,8,9}

Anyone has a solution for this?

Thanks
 

Answers and Replies

  • #2
1,069
29
list = Flatten[matrix]
 
  • Like
Likes johnobono
  • #3
2
0
OMG!!! Thanks, such a simple solution. I tried a lot of things, such as "For" and "Join", but with no easy result.

Thank you very much!
 

Related Threads on Matrix to list mathematica

Replies
2
Views
8K
Replies
1
Views
3K
  • Last Post
Replies
2
Views
8K
  • Last Post
Replies
3
Views
14K
Replies
1
Views
2K
  • Last Post
Replies
4
Views
2K
Replies
3
Views
16K
Replies
1
Views
2K
Replies
4
Views
3K
Top