How to convert a matrix to a string array:
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SM
el 9 de Mayo de 2021
Comentada: SM
el 2 de Jul. de 2021
I have a matrix:
R=[1 2 1 3 2 3 1;1 1 2 1 2 2 3];
that i want to convert to:
Q=["A11","A21","A12","A31","A22","A32","A13"];
How can I do that?
Appreciated!
0 comentarios
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 9 de Mayo de 2021
R=[1 2 1 3 2 3 1;1 1 2 1 2 2 3]
compose("A%d%d", R(1,:).', R(2,:).').'
Ver también
Categorías
Más información sobre Data Type Conversion 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!