Unrecognized function or variable 'privResolveArgs'. Error in sym/symvar (line 30) Ssym = privResolveArgs(S); Error in sym/partfrac (line 27) x = symvar(f, 1);

조회 수: 5 (최근 30일)
syms x
partfrac((2*x-1/((x-1)*(x+3)*(x-4))),x)
pretty(ans)
b=1/(3*(x-1))
c=-1/(12*(x+3))
d=-1/(7*(x-4))
d=b+c+d
pretty(d)
z1=5*(cos(2*pi/3)+sin(2*pi/3)*j)
z2=2*(cos(pi/4)+sin(pi/4)*j)
z=z1/z2
z3=1-2j
angle(z3)
abs(z3)^5
z=z3^5
angle(z)
abs(z)
So when i try to execute this code locally on my machine i get the following error:
Unrecognized function or variable 'privResolveArgs'.
Error in sym/symvar (line 30)
Ssym = privResolveArgs(S);
x = symvar(f, 1);
  댓글 수: 3
Dyuman Joshi
Dyuman Joshi 2023년 11월 9일
Have you attached the right/full code?
There seems to be no relation between the code and the errors you have mentioned.
Walter Roberson
Walter Roberson 2023년 11월 9일
partfrac calls symvar() and symvar calls an internal routine, but the internal routine is not found. The message does match the posted code.

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

답변 (1개)

SAI SRUJAN
SAI SRUJAN 2023년 11월 9일
Hi Adelin,
I understand that you are using MATLAB's Symbolic Math Toolbox to perform symbolic computations. The error specifically mentions the function 'privResolveArgs', which is an internal function used by MATLAB to resolve arguments for symbolic calculations.
You can use the following commands to check the proper installation of Symbolic Math Toolbox,
which sym
which privResolveArgs
Upon successful installation of the Symbolic Math Toolbox, you should observe the output displaying the path to the function. If executing the aforementioned commands does not yield any results, it indicates that either you do not have the Symbolic Math Toolbox installed, or it is not included in your MATLAB path configuration.
The error message suggests that the function 'privResolveArgs' is not recognized or cannot be found. It is recommended to update MATLAB to the latest version and restart the software, as this may resolve any potential conflicts or compatibility issues. If the problem persists, reinstalling the Symbolic Math Toolbox might be necessary to ensure all necessary files and dependencies are properly installed.
You can refer to the following documentation to understand more about 'which' MATLAB command.
I hope this helps.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by