Integration problem for a scalar

1 次查看(过去 30 天)
The code below generates Cp based off my program. Cp is a scalar. How would I write the integral of Cp with respect to Temp2? There are no specific bounds for this integration.
T2=78
A = SH(1,1);
B = SH(1,2);
C = SH(1,3);
Cp = A + (B * T2) + (C * (T2^2));
fun= @(T2)Cp;
DeltaH = integral(fun,0,inf);

采纳的回答

Walter Roberson
Walter Roberson 2020-12-11
syms T2
A = SH(1,1);
B = SH(1,2);
C = SH(1,3);
Cp = A + (B * T2) + (C * (T2^2));
int(Cp, T2)

更多回答(0 个)

类别

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