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

6 次查看(过去 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 中查找有关 Install Products 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by