how can I stick together the data in a matrix?

ex input A=[1 2 3 4 5]
A=
1 2 3 4 5
how can i stick the data from A together? so it would be like this:
A=12345
how can i do this? help me please. :)

 Akzeptierte Antwort

Matt Fig
Matt Fig am 6 Okt. 2012
Bearbeitet: Matt Fig am 6 Okt. 2012

0 Stimmen

A = 1:5
B = str2double(sprintf('%i',A))

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by