Fractional expression to decimal expression in symbolic function

15 views (last 30 days)
My question is very simple but I don't know the way...
I'm beginner so please help me.
I use "syms" and make a function.
and then, after some process, the funcction's expression is like below.
(7248263982714163 * x)/2251799813685248 - 3086369634568075/2199023255552
It is a linear function (ax + b) -> 'a' is slope and 'b' is y-intercept .
And, I want to get the function automatically like below.
3.2189*x - 1403.5
(because it is better to understand)
Please help me..

Accepted Answer

Cris LaPierre
Cris LaPierre on 18 Oct 2021
Summary:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!