Solve equations stored in variables
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rishabh Agrawal
am 27 Dez. 2020
Bearbeitet: KALYAN ACHARJYA
am 27 Dez. 2020
I have a code in which after the processing a numeric expression is stored in a variable 'Final'
and the numeric expression is (3206987*2^(3/10)*3^(29/40)*5^(23/40))/12000000
but when I do, disp(Final) it shows the entire numeric expression "(3206987*2^(3/10)*3^(29/40)*5^(23/40))/12000000" instead of solving this and printing out "1.841"
How do I get matlab to print out the solved solution instead of the numeric expression?
Akzeptierte Antwort
KALYAN ACHARJYA
am 27 Dez. 2020
Bearbeitet: KALYAN ACHARJYA
am 27 Dez. 2020
disp(vpa(simplify(Final)))
Or
fprintf('%.3f',simplify(Final))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!