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

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Torsten
Torsten am 9 Jan. 2023
Bearbeitet: Torsten am 9 Jan. 2023
T_surf_Max = double(S.T_surf(1))
T_o_Max = double(S.T_o(1))

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by