Error using heatmap (line 85) Method 'checkDirtyChildren' is not defined for class 'matlab.gr​aphics.ill​ustration.​ColorBar' or is removed from MATLAB's search path.

조회 수: 4 (최근 30일)
Hi everyone,
I'm having the following problem with heatmap while running my script:
Error using heatmap (line 85)
Method 'checkDirtyChildren' is not defined for class 'matlab.graphics.illustration.ColorBar' or is removed from
MATLAB's search path.
On another pc the script is working and I'm not able to fix this path problem here.
How can I fix it? Thanks in advance.
Sara

답변 (1개)

Shivani
Shivani 2024년 2월 27일
Hi @sara,
I understand that you’re receiving an error while trying to access the “checkDirtyChildren”. While it is not possible to determine the exact cause for this error without the actual code files, the error message you're encountering suggests there might be an issue with MATLAB's search path or with the installation itself.
Kindly refer to the following steps to troubleshoot and potentially resolve the issue:
  1. Check MATLAB Path: Firstly, ensure that the MATLAB path has not been modified to exclude necessary directories. You can check and restore the default path as follows: restoredefaultpath; rehash toolboxcache; After running these commands, try running your script again to see if the problem is resolved.
  2. Check for Overrides: Make sure that there are no custom classes or functions within your MATLAB path that might be overriding the default heatmap function or other related functions. It is likely that you’re facing this error as there is a duplicate file defined in the same class name within the path. Please check for duplicate files of the class returning the error.
  3. Reinstall MATLAB: If the previous steps fail to resolve the issue, your MATLAB installation might be corrupted. In this case, consider reinstalling MATLAB. Ensure that you back up any custom scripts or toolboxes before proceeding. Additionally, consider updating to the latest release.
Please reach out to MathWorks Technical Support if the issue persists.
You can contact MathWorks Technical Support by accessing this link: https://www.mathworks.com/support/contact_us.html
Hope this resolves your query!

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by