Borrar filtros
Borrar filtros

convert double matrix to string

8 visualizaciones (últimos 30 días)
Bou
Bou el 16 de Mzo. de 2014
Comentada: Bou el 16 de Mzo. de 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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 16 de Mzo. de 2014
B=arrayfun(@num2str,A,'un',0)

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by