Hi 鑫 ,
The error 'Error looking up class matlab.graphics.chart.primitive.Line' suggests that MATLAB is unable to locate the class definition of the 'Line' object, which is a fundamental part of MATLAB's plotting system.
This could be due to various reasons such as a corrupted MATLAB installation, issues with the MATLAB path, or problems with Java on your system.
You can try the below-mentioned steps to resolve this issue:
- It's possible that the MATLAB path has been altered, excluding important directories. You can reset the path to its default settings with the following commands:
matlab.graphics.chart.primitive.Line;
- Sometimes, issues with MATLAB's Java-based components can be resolved by clearing the Java cache. Use the following command:
- Try reinstalling the MATLAB as there might be a deeper issue with the MATLAB installation.