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

2 Ansichten (letzte 30 Tage)
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 Kommentare
Dyuman Joshi
Dyuman Joshi am 9 Nov. 2023
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 am 9 Nov. 2023
partfrac calls symvar() and symvar calls an internal routine, but the internal routine is not found. The message does match the posted code.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

SAI SRUJAN
SAI SRUJAN am 9 Nov. 2023
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.

Kategorien

Mehr zu Install Products finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by