MATLAB: When I tried to Laplace transform a differential equation, errors appeared, HELP

differential equationserrorslaplace transformationMATLABstr2symsyms

syms x t s X F
How this transformation could be done otherwise?

Best Answer

According to documentation, laplace() accepts symbolic inputs. You should input the symbolic equation
syms x(t) s X F
F = laplace(diff(x(t),t,t)+7*diff(x(t),t)+10*x(t)==20, s)
Also, define syms x(t) as a symbolic function. Defining them seperately will give an error.