0

我正在尝试查找函数的二阶导数,但是在初始化符号时出现以下错误:

Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'sym'.

我正在使用的命令是:

syms x a b c L;
u = (a*x(x-L))+(b*x((x^2)-(L^2)))+(c*x((x^3)-(L^3)));

u”是我的功能。

4

1 回答 1

2

我不太了解 MATLAB 的符号功能,但该错误来自于

x(x-L)

MATLAB 将其解释为索引操作。你是说那里的乘法吗?IE

x*(x-L)
于 2011-05-03T08:46:55.860 回答