MATLAB Answers

Error of sym>convertChar

4 views (last 30 days)
How can I solve this problem? Thanks a lot.

Accepted Answer

Stephan
Stephan on 20 Apr 2021
Edited: Stephan on 20 Apr 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 Comments
Kutlu Yigitturk
Kutlu Yigitturk on 20 Apr 2021
Thank you very much.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!