Error of sym>convertChar

1 visualización (últimos 30 días)
Kutlu Yigitturk
Kutlu Yigitturk el 20 de Abr. de 2021
Comentada: Kutlu Yigitturk el 20 de Abr. de 2021
How can I solve this problem? Thanks a lot.

Respuesta aceptada

Stephan
Stephan el 20 de Abr. de 2021
Editada: Stephan el 20 de Abr. de 2021
syms a b c x
f = str2sym('a*x^2 + b*x + c')
f = 
subs(f,x,5)
ans = 
subs(f,[x a b c],[5 1 2 3])
ans = 
38
  2 comentarios
Steven Lord
Steven Lord el 20 de Abr. de 2021
Alternately since all the symbolic variables have been defined on the first line:
syms a b c x
f = a*x^2+b*x+c
f = 
subs(f, x, 5)
ans = 
Kutlu Yigitturk
Kutlu Yigitturk el 20 de Abr. de 2021
Thank you very much.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by