how to select choose only two place after a decimal point in a equation file.

3 views (last 30 days)
I have a equation y= 2.35363 +a(7.636436356).
i am expecting my output to be
y= 2.35 +a(7.63)
Kindly help me.

Answers (1)

madhan ravi
madhan ravi on 20 Nov 2018
Edited: madhan ravi on 20 Nov 2018
y = 2.35363 +a(7.636436356)
y = vpa(y,2)


Community Treasure Hunt

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

Start Hunting!