Cody

Problem 1289. Evaluating continued fractions

Given row vector

   c=[c0 c1 c2 c3 ...]

evaluate the continued fraction

   x=c0+1/(c1+1/(c2+1/(c3+...)))

If c is a matrix, return column vector x in which x(i) is the solution for row i of c.

Solution Stats

47.17% Correct | 52.83% Incorrect
Last solution submitted on Sep 27, 2016

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more