GUI based Petri net simulation
finalmark = petrinetsimulation(forward,backward,initmark,namaplace,namatran)
This function is used for Petri net simulation using Graphical User Interface. The input of this function is Petri net that represented by forward incidence, backward incidence and initial marking. Name of each place and transition is used to help the user running the simulation.
f = [0 0 1;1 0 0;0 1 0]; // forward incidence b = eye(3,3); // backward incidence m = [0;1;0]; // initial marking np = ['M';'H';'K']; // name of each place nt = ['mh';'hk';'km']; // name of each transition m = petrinetsimulation(f,b,m,np,nt); // run the function | ![]() | ![]() |