# Export fespace variable to table/matrix

**URL:** https://community.freefem.org/t/export-fespace-variable-to-table-matrix/2043
**Category:** General Discussion
**Created:** [October 5, 2022, 9:33pm UTC](https://community.freefem.org/t/export-fespace-variable-to-table-matrix/2043 "2022-10-05T21:33:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stefanosv](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Stefanosv](https://community.freefem.org/u/Stefanosv)
#### Post date: [October 5, 2022, 9:33pm UTC](https://community.freefem.org/t/export-fespace-variable-to-table-matrix/2043/1 "2022-10-05T21:33:27Z")

</div>

I have a mesh with 200 triangles. They represent a beam the size of 20_10. Can I export a fespace variable in the form of a table the size of 20_10.  
What I mean is I want to export a variable i.e. u(i,j) where i=1-20 j=1-10 in the form of a table/matrix.

---

<div class="post-metadata">

### Author: ![Stefanosv](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Stefanosv](https://community.freefem.org/u/Stefanosv)
#### Post date: [October 7, 2022, 10:26am UTC](https://community.freefem.org/t/export-fespace-variable-to-table-matrix/2043/2 "2022-10-07T10:26:46Z")

</div>

Is there also a way to access a finite element P2 variable of a specific triangle?
