converting matrix to string

2 views (last 30 days)
Oyinda
Oyinda on 28 Apr 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'

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!