Laguerre polynomials in MATLAB

纵饮孤独 提交于 2019-12-02 03:46:23

Like you say, and the matlab help says this function only works inside mupad, maybe in later versions it works in matlab console.

If you want to use it, write mupad in Matlab Command window and then use it in the mupad, matlab will return you the result as I show in the picture

In R2014b+, there is a laguerreL function available directly from within Matlab. However, a version of this function was introduced to MuPAD in R2009a. You can call the MuPAD version from within Matlab

syms x;
feval(symengine,'laguerreL',2,x)

or

evalin(symengine,'laguerreL(2,x)')

Both return x^2/2 - 2*x + 1.

You can read more about interacting with MuPAD functionality from Matlab here. However, I'd recommend browsing and searching the archived documentation for your specific version or using your built-in HTML documentation (e.g., doc mupad or doc 'calling mupad').

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!