필터 지우기
필터 지우기

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