# Transpose of matrix

**URL:** <https://community.freefem.org/t/transpose-of-matrix/2027>\
**Category:** General Discussion\
**Created:** [September 27, 2022, 8:18am UTC](https://community.freefem.org/t/transpose-of-matrix/2027 "2022-09-27T08:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yangshen](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@Yangshen](https://community.freefem.org/u/Yangshen)\
**Post date:** [September 27, 2022, 8:18am UTC](https://community.freefem.org/t/transpose-of-matrix/2027/1 "2022-09-27T08:18:46Z")

</div>

Dear all  
About the following example.  
[https://modules.freefem.org/modules/elasticity/](https://modules.freefem.org/modules/elasticity/)  
After I get [ux, uy], I want to get [ux, uy] \* [ux, uy] '.  
So I entered the following code, but it didn’t seem to work.

sens = [ux,uy]\*[ux,uy]';

---

<div class="post-metadata">

**Author:** ![aszaboa](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/aszaboa/32/2918_2.png) [@aszaboa](https://community.freefem.org/u/aszaboa)\
**Post date:** [September 27, 2022, 8:52am UTC](https://community.freefem.org/t/transpose-of-matrix/2027/2 "2022-09-27T08:52:04Z")

</div>

I think you should write  
`sens = [ux,uy]'*[ux,uy];`  
since `[ux,uy]` is a column vector.

---

<div class="post-metadata">

**Author:** ![Yangshen](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@Yangshen](https://community.freefem.org/u/Yangshen)\
**Post date:** [September 27, 2022, 9:11am UTC](https://community.freefem.org/t/transpose-of-matrix/2027/3 "2022-09-27T09:11:33Z")

</div>

thank you.  
I did this before, but it didn’t work. It seems that the code after transposing the symbol 'is invalid.
