MATLAB code for unwrapping the phase to derive the elevation model

Hi

I am new here but I tried to find any MATLAB code for unwrapping the phase to derive the elevation model but I did not find it. Is there any source code in SNAP that I can use it.

I know it is possible to do it with SNAP but I want to do it in MATLAB.