https://www.mathworks.com/help/uav/ref/hom2cart.html
hom2cart - Convert homogeneous coordinates to Cartesian coordinates - MATLAB
This MATLAB function converts a set of homogeneous points to Cartesian coordinates.
homogeneous coordinatesconvertcartesianmatlab