https://in.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.graphplot.labeledge.html
labeledge - Label graph edges - MATLAB
This MATLAB function labels the edges specified by (s,t) node pairs with the character vectors or strings contained in Labels.
labelgraphedgesmatlab