Discover MakerZone

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

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!

Problem 1289. Evaluating continued fractions

Created by Tim

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.

Problem Group

Solution Statistics

24 correct solutions 25 incorrect solutions
Last solution submitted on Apr 24, 2016

Solution Comments