Symbolic Toolbox error: mustBeCompatibleReferenceStruct
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Carlos M. Velez S.
am 23 Feb. 2023
Kommentiert: Carlos M. Velez S.
am 16 Mär. 2023
In MATLAB desktop app (not in MATLAB Online) this error started appearing:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1304765/image.png)
What's the matter? I am using version 2020b.
4 Kommentare
Steven Lord
am 23 Feb. 2023
What does this command show in your MATLAB installation?
which -all mustBeCompatibleReferenceStruct
Can you also post the output of the following command (you can omit the line showing the license number) so we can make sure you're using the correct version of the toolbox for your release?
ver symbolic
Akzeptierte Antwort
Jinal
am 15 Mär. 2023
Hi Carlos,
As per my understanding you are facing an error while using the ‘syms’ command despite having the correct version of symbolic toolbox installed on your PC. The error you are getting indicates that the code for the function ‘mustbecompatibleReferencestruct’ is either missing or not accessible to the function ‘subsref’. A possible explanation for this is that the code for the 'syms' tool has been modified on your PC.
You can try using the following commands to resolve the error.
restoredefaultpath
rehash toolboxcache
If the error persists after running these commands, you will be required to reinstall the symbolic toolbox for your MATLAB from the Add-Ons Manager.
Hope this helps.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!