Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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

Respuesta aceptada

Torsten
Torsten el 9 de En. de 2023
Editada: Torsten el 9 de En. de 2023
T_surf_Max = double(S.T_surf(1))
T_o_Max = double(S.T_o(1))

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by