Creat a junction in network pipe

hi every body
i have a network pipe with demand and pressure and etc. I want add a junction to this network with matlab then add a demand to this junction and then run all of the network with added junction.
I need help