关于laguerreL函数的疑问。

8 views (last 30 days)
aiubymu
aiubymu on 18 May 2023
Answered: sleimben on 18 May 2023
在使用拉盖尔函数时,如果拉盖尔多项式中未知数是由另外的多个未知数构成,如何能够正确构成它的拉盖尔多项式,下面为例子
syms w y
x=w^4+y^4;
f1(x)=laguerreL(4, x);%拉盖尔多项式
错误提示
错误使用 sym/subsindex (line 855)
Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be symbolic variables, and
function body must be sym expression.
出错 sym/privsubsasgn (line 1126)
L_tilde2 = builtin('subsasgn',L_tilde,struct('type','()','subs',{varargin}),R_tilde);
出错 sym/subsasgn (line 963)
C = privsubsasgn(L,R,inds{:});
出错 Untitled28 (line 3)
f1(x)=laguerreL(4, x);%拉盖尔多项式

Accepted Answer

sleimben
sleimben on 18 May 2023
syms x(w,y)
x(w,y) = w^4 + y^4;
f1(w,y) = laguerreL(4, x)

More Answers (0)

Categories

Find more on Matrix Indexing 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!