Invalid indexing or function definition

1 次查看(过去 30 天)
syms y(t) s y_lt
dy=diff(y,t);
eqn = dy-y==2*cos(5*t)
cond=y(0)==0
eqnLt=laplace(eqn,t,s)
eqnLt = subs(eqnLt,laplace(y,t,s),y_lt)
y_lt=solve(eqnLt,y_lt)
ysol=ilaplace(y_lt)
Hi, I get this error with the solve function, does anyone know why the error?

回答(1 个)

Walter Roberson
Walter Roberson 2020-11-25
I suspect that you accidentally created a variable named solve

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by