converting matrix to string

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'

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 28 Avr 2011

0 votes

can so
data = {'e' 5985; 'e' 498598};
A = num2str(data{2,2})

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by