Scatter Plot Won't work (Error using scatter The specified superclass 'matlab.gr​aphics.mix​in.DataPro​perties' contains a parse error)

Hi all,
I am trying to get a scatter plot and keep getting the following error:
Error using scatter
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.
I have tried everything on the forums where people are having similar issues, tried reinstalling and tried using a different version of matlab. nothing will work. I have reset my search path, used "which -all "scatter", and used rehash.
Here is the code I wrote:
scatter(1,1) %to test scatter
Error using scatter
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.

3 个评论

Please share the code you ran and the full error message i.e. all of the red text.
matlab.graphics.mixin.DataProperties is a built-in class, so if you are not able to find it on your search path, that suggests a serious issue with your MATLAB installation.
You've already tried all the approaches I would recommend to fix this issue (check your path, or reinstall MATLAB).
My recommendation would be to contact technical support for help with this question.
But, I'm curious about a few things:
  • What version of MATLAB are you running?
  • Have you recently upgraded MATLAB? If so, has scatter ever worked in this installation of MATLAB?
  • What is the output from these three commands:
which -all matlab.graphics.mixin.DataProperties
which -all pathdef
which -all startup

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

版本

R2022b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by