Out of Memory. Infinite Recursion.

2 次查看(过去 30 天)
Hi all,
I tried to run polylog with a set of matrix:
Li = polylog(2,QED1);
% QED1 is a (8887 x 1000) matrix.
but I got the error as below:
Out of memory. The likely cause is an infinite recursion within the program.
Error in sym/double (line 703)
X = eval(Xstr(2:end-1)); % drop quotes
Error in sym.useSymForNumeric (line 175)
res = cast(fn(args{:}),superiorfloat(varargin{:}));
Error in double/polylog (line 8)
Z = sym.useSymForNumeric(@polylog, N, X);
Error in Untitled2 (line 46)
Li = polylog(2,QED1);
Is there any way I can solve this problem? Thank you so much for the help!

采纳的回答

G A
G A 2021-8-30
doc polylog
Argument of the polylogarithm, specified as a number, array, symbolic number, symbolic variable, symbolic function, symbolic expression, or symbolic array.
Not a matrix. Try
Li = polylog(2,QED1(:));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numbers and Precision 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by