Question about single digits.

2 views (last 30 days)
Hi everyone. Is there any function that converts "complex" number for example [123] to constituent elements [1 2 3] ?

Accepted Answer

Jonathan Sullivan
Jonathan Sullivan on 13 Jul 2012
Its not the most elegant, but this works:
A = str2num(num2str(123)')'

More Answers (1)

Artyom on 13 Jul 2012
Thanks. Maybe you know how to do the reverse process - from [5] [5] to [55]?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by