关于laguerreL函数的疑问。

조회 수: 8 (최근 30일)
aiubymu
aiubymu 2023년 5월 18일
답변: sleimben 2023년 5월 18일
在使用拉盖尔函数时,如果拉盖尔多项式中未知数是由另外的多个未知数构成,如何能够正确构成它的拉盖尔多项式,下面为例子
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);%拉盖尔多项式

채택된 답변

sleimben
sleimben 2023년 5월 18일
syms x(w,y)
x(w,y) = w^4 + y^4;
f1(w,y) = laguerreL(4, x)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!