MATLAB PCode Warning on R2021a

16 ビュー (過去 30 日間)
Danny Gho
Danny Gho 2022 年 9 月 10 日
コメント済み: Kiran Kintali 2023 年 5 月 4 日
I am running MATLAB r2021a and I got this warning
Warning: P-file /home1/apps/matlab/2021a/toolbox/matlab/datatypes/isprop.p is older than MATLAB file /home1/apps/matlab/2021a/toolbox/matlab/datatypes/isprop.m.
/home1/apps/matlab/2021a/toolbox/matlab/datatypes/isprop.p may be obsolete and may need to be regenerated.
I understand that this mean that I need to regenerate the P-Code, but considering this is from matlab default toolbox, is there any way I can 'reset' my installation? Keep in mind that my matlab install is managed so I prefer something that can be done in the command line.
Thank you very much for your attention.

採用された回答

Jan
Jan 2022 年 9 月 10 日
編集済み: Jan 2022 年 9 月 10 日
This can happen only, if somebody has edited the file isprop.m . Modifying Matlab's built-in functions is not useful and this cannot happen, if you work without admin privileges.
"I understand that this mean that I need to regenerate the P-Code." - no, don't do this. Usually the M-files of the toolbox functions contain the help section only. If you P-code them and overwrite the original P-file, the Matlab installation is damaged and need a repair e.g. by a re-installation.
The solution is to restore the original version of isprop.m from a backup or to re-install Matlab. Afterwards do not work with admin privilegs such that you cannot change the toolbox functions by accident.
  2 件のコメント
Tim King
Tim King 2023 年 5 月 3 日
I get this same error with a brand new fresh install. So is it important or can I ignore it?
Warning: P-file C:\Xilinx\Model_Composer\2022.2\simulink\hdl\xlscale_init.p is older than MATLAB file
C:\Xilinx\Model_Composer\2022.2\simulink\hdl\xlscale_init.m.
C:\Xilinx\Model_Composer\2022.2\simulink\hdl\xlscale_init.p may be obsolete and may need to be regenerated.
Kiran Kintali
Kiran Kintali 2023 年 5 月 4 日
Xilinx / Vitis Model Composer tech support team can be reached here.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 9 月 10 日
I can tell from the path that you are using Linux. For Linux or MacOS, you can use the system utility touch utility to change the modification date associated with a file; see https://man7.org/linux/man-pages/man1/touch.1.html

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by