Symbolic Equation Problem

조회 수: 10 (최근 30일)
Ammar
Ammar 2011년 11월 15일
답변: Suleyman 2023년 1월 8일
I have the following variables:
A=6.89272
B=1203.531
C=219.888
P=760
and the following expression:
TC=sym('log10(P)=A-(B/(C+T))')
T=solve(TC,'T')
T is the normal boiling point of benzene. I have to use MATLAB's symbolic capabilities to solve for T. However, no matter what method I try, I either get that T is undefined, or the symbolic expression of T. I cannot use eval(T).
Any suggestions?

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 15일
A=6.89272
B=1203.531
C=219.888
P=760
syms T
TC = double(solve(log10(P)-A+(B/(C+T)),T));
Alternately, using your TC code,
solve(subs(TC),'T')

추가 답변 (1개)

Suleyman
Suleyman 2023년 1월 8일
allah

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by