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

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)

Categorías

Más información sobre Dynamic System Models en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Preguntada:

el 20 de Abr. de 2021

Comentada:

el 20 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by