Clear Filters
Clear Filters

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

1 view (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!