Matlab set path during installation - Issues with shadow path
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I have recently installed Matlab 2021a on my PC. During installation, there was one option with checkbox "Add PATH.." (Or 'add to PATH' don't remember exactly the option name), which I did not tick as my PC should be restarted. Because I am on remote login, I cannot restart. How does this affect me? Is it required that I have to add to path upon installation?
I am facing issues with path while I am trying to run my packages/functions. Did I make any mistake by not adding to path and restarting during installation? What is the correct way? Or do I have to set path? Is this dependent to "shadowing" errors. I am also giving an example error which I am facing with path. I specifically want to know how to deal path.
Shadowing Error:
The class 'model.ConfigurationClass' of property 'configuration' is invalid: The specified superclass
'XmlObjectClass' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file
with the same name.
Thanks for your time looking into my post. I would higly appreciate any of your help
0 commentaires
Réponses (1)
Kanika Gupta
le 21 Juin 2021
Generally, this error is received when there is a user defined function in the MATLAB search path which has the same name as the MATLAB built-in function. In order to resolve the issue, follow the troubleshooting steps below:
a) Manually go through the MATLAB search path and remove the paths which have functions conflicting with in build MATLAB functions. Execute the following command to get the list of the current search path.
>> path
The following command may help to find the source of the issue:
>> which -all <conflicting_function>
b) If you are unsure of which paths to remove or the above command displays only one line, please restore the MATLAB search path to its factory-installed state by executing the following command:
>> restoredefaultpath
You may want to note that the above command may remove the paths that you have previously added to MATLAB search path for your scripts to work. So, it is advisable to save a backup copy of the current MATLAB search path before running the command.
Refer to the following link to the documentation to back up the current search path:
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!