Cody

Problem 2364. Convert a vector into numbers

Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'.

Examples

 x = [ 1 3 5 6 ] 
 y = '1356'
 x = [ 2 5 7 23] 
 y = '25723'

Solution Stats

62.96% Correct | 37.04% Incorrect
Last solution submitted on Aug 17, 2016

Problem Comments

Tags

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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more