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

Problem 1312. Rescaling vector

Created by Alex P.

Rescale the entries of a vector x so that it spams [a,b]. The new values should be linearly stretched into the new range.

Example

x = [0 5 10]; a=0; b=1;
y = [0 0.5 1]

Tags

Problem Group

Solution Statistics

23 correct solutions 26 incorrect solutions
Last solution submitted on Apr 07, 2014

Solution Comments