You cannot use an outdated P-file in a modern Matlab version.
Either download an old Matlab version and run the code there. Or ask the author of the code to provide an updated version of the file.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!