Laguerre polynomials in MATLAB

后端 未结 2 1354
遥遥无期
遥遥无期 2021-01-24 13:48

I tried using the .. command in MATLAB to generate Laguerre polynomials but I keep getting this error every time:

\"

2条回答
  •  情书的邮戳
    2021-01-24 14:09

    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').

提交回复
热议问题