Cody

Problem 72. Interpolator

Created by Cody Team in Cody Challenge

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end) find the a(n), a(n+1) that flank it. Now interpolate the value, vb, such that it is proportionally between b(n) and b(n+1).

va can land exactly on a value of a.

Solution Stats

51.41% Correct | 48.59% Incorrect
Last solution submitted on Dec 15, 2018

Problem Comments

Solution Comments

Recent Solvers788

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!