Consider an Abelian category , for example the category of sheaves of abelian groups on a site, or the category of vector spaces (sheaves on a one-point space), or the category of condensed abelian groups.
Take three objects
Then
Explicitly, the isomorphism is given by
where and are the inclusion and projection maps, respectively.
More concretely, set ; then . Hence
Now define . Then
Writing as a matrix gives
Clearly addition of morphisms corresponds to addition of matrices.
If we also have and a morphism , then composition of morphisms corresponds to matrix multiplication.
If you are curious about what happens on the level of Hom groups: consider the composition map
Here
and
However, vanishes on mismatched indices, so it effectively factors through