Question about single digits.

1 次查看(过去 30 天)
Hi everyone. Is there any function that converts "complex" number for example [123] to constituent elements [1 2 3] ?

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by