converting matrix to string

2 visualizaciones (últimos 30 días)
Oyinda
Oyinda el 28 de Abr. de 2011
so i have a matrix
data = ['e' 5985; 'e' 498598]
i need to assign the value in data(2,2) to A so A would be equal to a string '498598'

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 28 de Abr. de 2011
can so
data = {'e' 5985; 'e' 498598};
A = num2str(data{2,2})

Más respuestas (0)

Categorías

Más información sobre Numeric Types 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