Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by