Out of Memory. Infinite Recursion.
2 views (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
G A
on 30 Aug 2021
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 Comments
More Answers (0)
See Also
Categories
Find more on Numbers and Precision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!