Dear all,
I found the solution to my problem. It was simply an error in the name of a folder in the path. It contained " - " which apparently is not allowed. Compiling in another folder (Documents\MATLAB) worked fine. I was even able to copy the compiled files back into the original folder and use them in my simulations.
Regards, Sebastiaan