Cody

Problem 1986. Another colon problem

Created by Jan Orwat in Community

This is simple problem based on problems 555, 801, 1118, etc.

Create an index vector from two input vectors.

Example:

input: [1 8 12] [4 5 9]
output: [1 2 3 4 8 7 6 5 12 11 10 9]

Solution Stats

48.4% Correct | 51.6% Incorrect
Last solution submitted on Jan 21, 2019

Problem Comments

Recent Solvers75

Suggested Problems

More from this Author47

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!