Hello,
I want to convert a double matrix to a matrix of individual cells with the number between parentheses. So I want to convert A into B.
A=
1 2 3
4 5 6
7 8 9
B=
'1' '2' '3'
'4' '5' '6'
'7' '8' '9'
Im quite new to matlab and not sure which function to use for this purpose.
Thanks in advance! Greetings Boudewijn

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 16 Mär. 2014

2 Stimmen

B=arrayfun(@num2str,A,'un',0)

Weitere Antworten (0)

Kategorien

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

Gefragt:

Bou
am 16 Mär. 2014

Kommentiert:

Bou
am 16 Mär. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by