How to Activate GMT on Matlab using MAC OS

Hi. I’m making my School study on the terrains of Morocco. But i can’t seem to figure out how to use GMT on Matlab and after looking through almost all the forum questions, i can’t find a similar case to mine.
I installed then.dmg package and the software is on my pc, but when i click on it, it opens in terminal not matlab, when i try to call the .dmg file on matlab, it says the editor doesn’t have enough space to open it.
So i’m stuck, how do i call the file to matlab not python or terminal. Sorry if this seems like a dumb question but i’m genuinely stuck and running out of time to get this done

Have you tried this page ?