dont work syms??

2 visualizaciones (últimos 30 días)
thanos zisopoulos
thanos zisopoulos el 14 de Nov. de 2017
Comentada: Baojun Yuan el 23 de En. de 2023
nothing example with syms dont work in matlab for example this syms y(t) a eqn = diff(y,t,2) == a*y; ySol(t) = dsolve(eqn)
  4 comentarios
thanos zisopoulos
thanos zisopoulos el 14 de Nov. de 2017
Editada: Stephen23 el 14 de Nov. de 2017
syms y(t) a
eqn = diff(y,t,2) == a*y;
ySol(t) = dsolve(eqn)
Error using assignin
Invalid variable name "y(t)" in ASSIGNIN.
Error in syms (line 56)
assignin('caller',varargin{i},sym(varargin{i}));
Baojun Yuan
Baojun Yuan el 23 de En. de 2023
same problem ...........

Iniciar sesión para comentar.

Respuestas (1)

Steven Lord
Steven Lord el 14 de Nov. de 2017
Which release of MATLAB and Symbolic Math Toolbox are you using? Based on that error I suspect you're using a release prior to release R2012a, when the ability to create symbolic functions was introduced.
The functionality described in the online documentation is for the most recent release. If you're using a sufficiently older release (6+ years is "sufficiently older") I recommend referring to the documentation included in your installation. That local documentation will not refer to features introduced after the release you're using.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by