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 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

29 correct solutions 46 incorrect solutions
Last solution submitted on Jun 15, 2016

Solution Comments