How do I access polylog in MATLAB R2013b?

1 回表示 (過去 30 日間)
Mark
Mark 2013 年 10 月 10 日
回答済み: Mark 2013 年 10 月 11 日
Based on the documentation, there is a function, "polylog" that became available with MATLAB R2013b.
I installed R2013b, but I'm unable to access the polylog function.
>> polylog(1, 2)
Undefined function 'polylog' for input arguments of type 'double'.
>> which polylog
'polylog' not found.
What is curious is that I'm able to access other functions that are also in the Symbolic Math Toolbox (which polylog resides in).
>> which dirac
C:\Program Files\MATLAB\R2013b\toolbox\symbolic\symbolic\dirac.m
>> which zeta
C:\Program Files\MATLAB\R2013b\toolbox\symbolic\symbolic\@single\zeta.m % single method
Any idea why I may not be able to access polylog?
Thanks!
Mark

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 11 日
You can only "which" for symbolic routines that also have a MATLAB interface. Symbolic routines that exist only in MuPAD cannot be found with which. Try
feval(symengine, 'polylog', 1, 2)
or
evalin(symengine, 'polylog(1, 2)')

その他の回答 (1 件)

Mark
Mark 2013 年 10 月 11 日
Thanks a lot Walter. That's an excellent answer!

製品

Community Treasure Hunt

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

Start Hunting!

Translated by