How to merge str array with double array?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Julien Pezet
el 27 de Feb. de 2019
Comentada: Julien Pezet
el 27 de Feb. de 2019
Hello all,
I have a cell array A and a double array B like the following:
A = {'21/02'
'22/02'
'25/02'}
B = [2 7 9
5 7 0
3 6 1]
I would like to merge them in order to obtain C like:
C = {'21/02' '2' '7' '9'
'22/02' '5' '7' '0'
'25/02' '3' '6' '1'}
But I'm stuck. I would appreciate any help!
0 comentarios
Respuesta aceptada
Más respuestas (2)
KSSV
el 27 de Feb. de 2019
A = {'21/02'
'22/02'
'25/02'}
B = [2 7 9
5 7 0
3 6 1]
iwant = strcat(A,{' '},num2str(B))
1 comentario
Ver también
Categorías
Más información sobre Matrices and Arrays 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!