Filter löschen
Filter löschen

convert double matrix to string

8 Ansichten (letzte 30 Tage)
Bou
Bou am 16 Mär. 2014
Kommentiert: Bou am 16 Mär. 2014
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
B=arrayfun(@num2str,A,'un',0)

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help 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