How can i fix this "Attempt to execute SCRIPT settings as a function"?

조회 수: 11 (최근 30일)
Setawut Mutchimanun
Setawut Mutchimanun 2018년 3월 22일
편집: Yangyadatta Tripathy 2022년 6월 7일
  댓글 수: 3
Yangyadatta Tripathy
Yangyadatta Tripathy 2022년 6월 7일
편집: Yangyadatta Tripathy 2022년 6월 7일
No need to remove PSAT.
  1. Change the settings function name of psat in the toolbox folder.
  2. Set path to C:\Program Files\MATLAB\R2017b\toolbox\matlab\configtools
  3. 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

댓글을 달려면 로그인하십시오.

답변 (1개)

Benjamin Kraus
Benjamin Kraus 2018년 3월 22일
편집: Benjamin Kraus 2018년 3월 22일
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.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by