The parton-to-hadron fragmentation functions (FFs) obtained from the YAJEM and PYTHIA6 Monte Carlo event generators, are studied for jets produced in a strongly-interacting medium and in the QCD "vacuum" respectively. The medium modifications are studied with the YAJEM code in two different scenarios by (i) accounting for the medium induced virtuality ∆Q 2 transferred to the leading parton from the medium, and (ii) by altering the infrared sector in the Borghini-Wiedemann approach. The results of our simulations are compared to experimental jet data measured by the CMS experiment in PbPb and pp collisions at a center-ofmass energy of 2.76 TeV. Though both scenarios qualitatively describe the shape and main physical features of the FFs, the ratios are in much better agreement with the first scenario. Results are presented for the Monte Carlo FFs obtained for different parton flavours (quark and gluon) and accounting exactly, or not, for the experimental jet reconstruction biases.