Export fespace variable to table/matrix

I have a mesh with 200 triangles. They represent a beam the size of 2010. Can I export a fespace variable in the form of a table the size of 2010.
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.

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