Convert time Petri net file .tpn to pre and post matrix in Matlab