3

Suppose I have a matrix {{1,2,3},{4,5,6}}. I want to remove the curly brackets near the edges, i.e., I want an output as '{1,2,3},{4,5,6}'. Somebody please help me to solve it.

atanu
  • 353
  • 1
  • 7

1 Answers1

4

For display purposes you can use Row: e.g.,

 Row[{{1, 2, 3}, {4, 5, 6}}, ","]

enter image description here

Update: to get {1,2,3,4,5,6} from {{1, 2, 3}, {4, 5, 6}} use Join:

Join @@ {{1, 2, 3}, {4, 5, 6}}

{1, 2, 3, 4, 5, 6}

kglr
  • 394,356
  • 18
  • 477
  • 896