problem in plotting the logarithmic integral

1 次查看(过去 30 天)
Good Evening to everybody.
I have a serious problem. I'm using Matlab, and I am not be able to plot the Logarithmic Integral, logint or LI(x). Matlab do not recognize the command or the input, and I don't know how to do.
For example if I write
x = linspace(0, 10); y = cosint(x); plot(x,y)
it's all ok.
But if I try to write logint(x) or Li(x) or whatever else.. nothing. Error.
What's the problem?
Thank you very much to everybody

回答(1 个)

Star Strider
Star Strider 2014-9-9
It’s in the Symbolic Math Toolbox as logint. There is also a MuPAD version as Li. I can’t find documentation for any others, although searching the File Exchange for logarithmic integral might be an option.

Community Treasure Hunt

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

Start Hunting!

Translated by