Error of sym>convertChar

조회 수: 3 (최근 30일)
Kutlu Yigitturk
Kutlu Yigitturk 2021년 4월 20일
댓글: Kutlu Yigitturk 2021년 4월 20일
How can I solve this problem? Thanks a lot.

채택된 답변

Stephan
Stephan 2021년 4월 20일
편집: Stephan 2021년 4월 20일
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
Steven Lord
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
f = 
subs(f, x, 5)
ans = 
Kutlu Yigitturk
Kutlu Yigitturk 2021년 4월 20일
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by