필터 지우기
필터 지우기

Solving equations that are first parametrically solved

조회 수: 3 (최근 30일)
farzad
farzad 2014년 12월 5일
댓글: farzad 2014년 12월 7일
Hi All
if I solve a set of equations first parametrically and I end in something like : C = a^2 + 2 * b +1/R
and then I want to put numbers in a and b and R and get a result for C , how do I do that ?
I mean the code is initiated with
syms a , b , R

채택된 답변

Mischa Kim
Mischa Kim 2014년 12월 7일
Farzad, you want to use the subs command
syms a b R
C = a^2 + 2 * b + 1/R;
C_num = subs(C,{a,b,R},{1,2,3})
C_num =
16/3

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by