Change the format of output answers of two variable in two equations

1 次查看(过去 30 天)
My code is to calculate two unknows in two eqns of forth degree:
S = solve(eqns,[T_surf T_o]);
T_surf_Max = S.T_surf (1)
T_o_Max = S.T_o (1)
the output is appeared to be like this :
T_surf_Max =
(415596574619474270430682290341725^(3/4)*2397419428016662177393809445695477935767552^(1/4))/415596574619474270430682290341725
T_o_Max =
(1911744243249581643981138535571935^(3/4)*15576762981670305987283764868264015979085824^(1/4))/1911744243249581643981138535571935
and i want to be appeared like this :
T_surf_Max = 275.5929
T_o_Max = 300.4428

采纳的回答

Torsten
Torsten 2023-1-9
编辑:Torsten 2023-1-9
T_surf_Max = double(S.T_surf(1))
T_o_Max = double(S.T_o(1))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by