# Steps to create additional table on matrix

**URL:** <https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834>\
**Category:** Optimization (Mathematical)\
**Created:** [April 6, 2019, 10:35am UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834 "2019-04-06T10:35:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WILSON\_MASIH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wilson_masih/32/7719_2.png) [@WILSON\_MASIH](https://discourse.julialang.org/u/WILSON_MASIH)\
**Post date:** [April 6, 2019, 10:35am UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834/1 "2019-04-06T10:35:15Z")

</div>

A=zeros(5,5) # it represent 5x5 matrix having 0 number

for i in 1:5

for j in 1:5  
A[i,j]=i+j # square bracket for indices.as indices start from 1  
end  
end  
A

output :5x5 Array  
2.0 3.0 4.0 5.0 6.0  
3.0 4.0 5.0 6.0 7.0  
4.0 5.0 6.0 7.0 8.0  
5.0 6.0 7.0 8.0 9.0  
6.0 7.0 8.0 9.0 10.0

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [April 6, 2019, 10:53am UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834/2 "2019-04-06T10:53:57Z")

</div>

Is this a question?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 6, 2019, 11:54am UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834/3 "2019-04-06T11:54:21Z")

</div>

This is your [second post](https://discourse.julialang.org/t/lu-factorizations-in-julia/22819) which is very hard to understand, or even figure out if it is a question.

Please respect the time that people devote to helping others on this forum by investing some effort into formulating your post more clearly.

Also, please [quote your code](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530), and [make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757).

---

<div class="post-metadata">

**Author:** ![WILSON\_MASIH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wilson_masih/32/7719_2.png) [@WILSON\_MASIH](https://discourse.julialang.org/u/WILSON_MASIH)\
**Post date:** [April 6, 2019, 2:50pm UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834/5 "2019-04-06T14:50:06Z")

</div>

sorry for the inconvenience i edited my post please check it

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [April 6, 2019, 8:57pm UTC](https://discourse.julialang.org/t/steps-to-create-additional-table-on-matrix/22834/6 "2019-04-06T20:57:47Z")

</div>

Sorry but I don’t think this edit is really helping - could you formulate an actual question? And please do read through the posts linked by @Tamas_Papp that explain how you can share your problem in the way that makes it most likely that others are able to help you.
