我正在尝试在MATLAB中的以下方程式中求解T4,我定义了所有其他变量,我需要从方程式1中提取T4。有没有一种快速的方法来执行此操作,而不是手动重新排列T4的方程式?
Wnet = 2046;
mdotair = 9741/147;
cp = 1005;
etaturb = 0.89;
etacomp = 0.9;
r = 12;
gamma = 1.4;
T2 = 280 ;
g = (gamma-1)/gamma;
Wnet = mdotair*cp*T2*(etaturb*(T4/T2)*(1-1/(r^g)-(1-1/r^g)-((r^g-1)/(etacomp)))); %equation 1
答案 0 :(得分:1)
是的,有。
syms T4
Wnet = 2046;
mdotair = 9741/147;
cp = 1005;
etaturb = 0.89;
etacomp = 0.9;
r = 12;
gamma = 1.4;
T2 = 280 ;
g = (gamma-1)/gamma;
eqn = mdotair*cp*T2*(etaturb*(T4/T2)*(1-1/(r^g)-(1-1/r^g)-((r^g-1)/(etacomp))))-Wnet;
T4 = solve(eqn,T4);