Error of sym>convertChar
2 次查看(过去 30 天)
显示 更早的评论
How can I solve this problem? Thanks a lot.
0 个评论
采纳的回答
Stephan
2021-4-20
编辑:Stephan
2021-4-20
syms a b c x
f = str2sym('a*x^2 + b*x + c')
subs(f,x,5)
subs(f,[x a b c],[5 1 2 3])
2 个评论
Steven Lord
2021-4-20
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
subs(f, x, 5)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!