# Declare a matrix with break lines

**URL:** <https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568>\
**Category:** General Usage\
**Created:** [June 10, 2018, 10:40pm UTC](https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568 "2018-06-10T22:40:53Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Liso](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Liso](https://discourse.julialang.org/u/Liso)\
**Post date:** [June 11, 2018, 6:03am UTC](https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568/16 "2018-06-11T06:03:23Z")

</div>

> [@Seif\_Shebl](#):
>
> a = [1 2 3 4 5 [6] 7 8 9 10; 1 2 3 4 5 [6] 7 8 9 10]

See also:

> [@How to create a 2x1 Array?](https://discourse.julialang.org/t/how-to-create-a-2x1-array/8337):
>
> TL;DR, answer: to get a 2x1 Array/Matrix transpose a 1x2 matrix, for example: [2 4]' A more general solution that also works for complex numbers in Julia V0.7- would be transpose([2 4]) I wanted to test julia\> maximum([1 2; 3 4], 2) 2×1 Array{Int64,2}: 2 4 So I tried julia\> maximum([1 2; 3 4], 2) == [2;4] false I expected the value to be true, but the value is false because julia\> [2;4] 2-element Array{Int64,1}: 2 4 That is, a 2×1 Array{Int64,2} is not the same as a 2-element Arra…

---

_[View the full topic](https://discourse.julialang.org/t/declare-a-matrix-with-break-lines/11568)._
