How to fix error message "Invalid pfile. The file header is corrupt."

58 views (last 30 days)
I am struggling to use get_specific_heat_params.p I have that .p file downloaded and have tried calling a variable from it many times but keep getting this error message "Invalid pfile. The file header is corrupt." I have tried restarting matlab as well as deleting and redownloading the get_specific_heat_params.p file. How can I fix this?

Answers (1)

Walter Roberson
Walter Roberson on 5 Mar 2021
You cannot fix it yourself. You need to get the site to recreate the file.
However, it is possible that the p file was created for (ummmm, let me think... somewhere around R11? I do not mean R2011x, I mean a release that was roughly 1997. p files that old might not be detected anymore.
There is a separate issue that p files created before... ummm, 2009?? 2011?? are not compatible and need to be regenerated. However when that situation is encountered matlab will give you a specific message saying that it needs to be recreated.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!