https://se.mathworks.com/help/robotics/ref/cart2hom.html
cart2hom - Convert Cartesian coordinates to homogeneous coordinates - MATLAB
This MATLAB function converts a set of points in Cartesian coordinates to homogeneous coordinates.
cartesian coordinatesconverthomogeneousmatlab