Fractional expression to decimal expression in symbolic function

8 visualizzazioni (ultimi 30 giorni)
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..

Risposta accettata

Cris LaPierre
Cris LaPierre il 18 Ott 2021
Summary:

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by