How to get improper fraction representation from rat(x,tol) function?

4 Ansichten (letzte 30 Tage)
Dear matlab forum,
Hello. the rat(x,tol) function outputs a string of a continued fraction, for example '5+1/(7+1/4)'. How can I condense this into an improper fraction of only one numerator and denominator?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 2 Feb. 2021
[N,D] = rat(x,tol);

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by