transforming a matrix from numbers to letters

3 views (last 30 days)
Hi,
I'm reviewing a problem for a quiz and I have to convert the following matrix:
elements =
32 72
72 101
76 105
66 101
32 66
32 67
32 78
32 79
32 70
78 101
78 97
77 103
65 108
83 105
32 80
32 83
67 108
65 114
into a new matrix, with the new matrix having each element be the corresponding character. So, for example, the first two rows of the new matrix would be:
newelements(1:2,:)= H He
Thanks!

Answers (1)

Walter Roberson
Walter Roberson on 3 Oct 2013
char()

Categories

Find more on Matrices and Arrays 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!