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

3 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by