How to extract 1st digit of each number in an array
4 views (last 30 days)
Show older comments
Can anyone pls tell me what if x is an array of numbers can we seperate the 1st digit of each entry ..Like if x = [12 34 56 999 430 2]
and i want output out= [1 3 5 9 4 2]
0 Comments
Accepted Answer
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!