Error Message when using "Scatter"

13 ビュー (過去 30 日間)
Ryan Schanta
Ryan Schanta 2022 年 1 月 28 日
編集済み: Priyanka Kondapalli 2022 年 3 月 24 日
I receive the following error message every time I try to use scatter. It's not happening when I used plot, or other functions. This happened when I moved the files from a folder to another folder, and I can't figure out why.
Error using scatter (line 61)
The specified superclass 'matlab.graphics.mixin.DataProperties' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file with the same name.
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 1 月 28 日
You probably need to reinstall MATLAB (but the toolboxes themselves are probably okay)

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

回答 (1 件)

Priyanka Kondapalli
Priyanka Kondapalli 2022 年 1 月 31 日
編集済み: Priyanka Kondapalli 2022 年 3 月 24 日
Hi,
Below are few steps that can be followed to overcome the error encountered.
Firstly, it is important to take a backup of your 'pathdef.m' file, which can be located by using the command:
>> which -all pathdef
Before proceeding, ensure that you make a safe copy of the file by copying it to a folder outside of your MATLAB path.
After taking the backup, please execute the following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache:
>> restoredefaultpath
>> rehash toolboxcache
For Simulink users, including an additional command may be helpful:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
After this step, please use MATLAB/Simulink to see if the issue occurs again. If the issue is resolved, then you may want to save the new MATLAB searchpath by executing the following command:
>> savepath

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by