# GMT in matlab under Linux

**URL:** <https://forum.generic-mapping-tools.org/t/gmt-in-matlab-under-linux/1161>\
**Category:** Q&A\
**Created:** [January 2, 2021, 5:00am UTC](https://forum.generic-mapping-tools.org/t/gmt-in-matlab-under-linux/1161 "2021-01-02T05:00:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangleir](https://avatars.discourse-cdn.com/v4/letter/y/a8b319/32.png) [@yangleir](https://forum.generic-mapping-tools.org/u/yangleir)\
**Post date:** [January 2, 2021, 5:00am UTC](https://forum.generic-mapping-tools.org/t/gmt-in-matlab-under-linux/1161/1 "2021-01-02T05:00:17Z")

</div>

Hi, everyone  
In windows, the GMT works fine in Matlab. I am wondering that could the GMT MATLAB interface be used under Linux?  
Because I will move some of my Matlab codes to the Linux system. So, I have this question.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [January 2, 2021, 4:18pm UTC](https://forum.generic-mapping-tools.org/t/gmt-in-matlab-under-linux/1161/2 "2021-01-02T16:18:27Z")

</div>

We have had info that it works well on Linux as well. There was even a post (perhaps in the old forum) describing the compilation steps but basically it should be what we have in the `gmtmex` makefile.

---

<div class="post-metadata">

**Author:** ![yangleir](https://avatars.discourse-cdn.com/v4/letter/y/a8b319/32.png) [@yangleir](https://forum.generic-mapping-tools.org/u/yangleir)\
**Post date:** [January 3, 2021, 2:19am UTC](https://forum.generic-mapping-tools.org/t/gmt-in-matlab-under-linux/1161/3 "2021-01-03T02:19:18Z")

</div>

Great!  
I will try it.
