Matlab Script to generate the dicom files of pCT with Unique Identifiers as described in Maspero M. et al., 2017, Quantification of confounding factors in MRI-based dose calculations as applied to prostate IMRT, Phys. Med. Biol. 62(3) http://dx.doi.org/10.1088/1361-6560/aa4fe7, along with an example dicom dataset. Please refer to the article to better understand in which context the code has been developed. The code is licensed under Creative Commons Attribution-ShareAlike 4.0 International https://creativecommons.org/licenses/by-sa/4.0/legalcode. The code is here presented for scientific reproducibility, no use for medical or other purposes is warranted. Please check https://codeocean.com/2017/10/28/mr-based-substitute-ct-generation-for-clinical-use-colon-quantification-of-confounding-factors/ for other info about legal issue and attributions.