converting matrix to string

2 次查看(过去 30 天)
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'

采纳的回答

Andrei Bobrov
Andrei Bobrov 2011-4-28
can so
data = {'e' 5985; 'e' 498598};
A = num2str(data{2,2})

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by