MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Itzik Ben Shabat
on 16 Dec 2012

hi lets say i have a vector [1,1,1] is there a function that can convert this to the number 111 ?

*No products are associated with this question.*

## 2 Comments

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/56699#comment_117411

What should be done if the vector includes values greater than 9?

If the vector starts with values that are 0, what should be the result ?

## Itzik Ben Shabat (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/56699#comment_117417

the vector does not contain values greater than 9. if it has 0 to the left it ignores them - 009=9, 012=12 etc.

i could write a for loop that calculates this but i was wondering if there is a function.