How can i fix this "Attempt to execute SCRIPT settings as a function"?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i try to do with this method but it can't
thanks
3 commentaires
Yangyadatta Tripathy
le 7 Juin 2022
Modifié(e) : Yangyadatta Tripathy
le 7 Juin 2022
No need to remove PSAT.
- Change the settings function name of psat in the toolbox folder.
- Set path to C:\Program Files\MATLAB\R2017b\toolbox\matlab\configtools
- Check that the set path stay on top of any path related to psat toolbox
Now you can run psat from command window without having any error
Réponses (1)
Benjamin Kraus
le 22 Mar 2018
Modifié(e) : Benjamin Kraus
le 22 Mar 2018
It looks like you have installed a third-party toolbox called "psat" (Is this the "Power System Analysis Toolbox"?) that has a function called settings, but that is conflicting with a new MATLAB function called settings that was introduced in R2018a.
My guess is that an internal MATLAB function is trying to use the new settings function, but the settings function in the third-party toolbox is conflicting. This means the internal MATLAB function is getting the PSAT version instead, which is generating the error message.
Unfortunately, I think the only solution is to remove the Power System Analysis Toolbox from your MATLAB path until they can update the toolbox to stop overloading the settings method.
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!