https://fr.mathworks.com/help/pde/ug/discretegeometry.faceedges.html
faceEdges - Find edges belonging to specified faces - MATLAB
This MATLAB function finds edges belonging to the faces with ID numbers listed in RegionID.
findedgesbelongingfacesmatlab