Symbolic Equation Problem
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ammar
le 15 Nov 2011
Réponse apportée : Suleyman
le 8 Jan 2023
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?
0 commentaires
Réponse acceptée
Walter Roberson
le 15 Nov 2011
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')
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!