Error in copying figure - Variables - Error using Builtin Path - Could not be absulutized

9 ビュー (過去 30 日間)
I am unable to copy any figure from the figure window, and run other functions from the menu tab. I keep getting this error message. I am using R2021b version of MATLAB that was recently installed. Attached is the image of the error. The whited section is just the name of the script but shows as *.p on the error. Any suggetions how to debug this error? I am not sure if there is anything wrong with my code producing the figure. Thank you!


Meg Noah
Meg Noah 2022 年 1 月 1 日
>> which pathdef
It could be that the pathdef.m file is missing. If it is missing, type
>> restoredefaultpath
>> matlabrc
navigate to your local folder, should be something like C:\Program Files\MATLAB\<version>\toolbox\local
then enter the following to create a new one:
>>savepath pathdef.m
  1 件のコメント
alex535 2022 年 1 月 1 日
Thank you! This is how I was able to use your suggestion:
  1. Navigated to local folder on MATLAB: C:\Program Files\MATLAB\<version>\toolbox\local
  2. Typed on command window: >> which pathdef - (pathdef.m was present)
  3. Typed on command window: >> restoredefaultpath
  4. Typed on command window: >> matlabrc
  5. Typed on command window: >>savepath pathdef.m
After this, I am not having the same issue.


その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 1 月 1 日
I suspect filesystem corruption. I suggest DISM and SFC


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

Community Treasure Hunt

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

Start Hunting!

Translated by