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

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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!