How can I merge two array's?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Biza Ferreira
el 29 de Oct. de 2015
Comentada: Muthu Annamalai
el 29 de Oct. de 2015
I have two array and I want to merge in one . A =['test']; B= [1, 2, 3]; C= ['test', 1, 2, 3];
0 comentarios
Respuesta aceptada
Adam
el 29 de Oct. de 2015
{ A, B }
will merge them into a cell array as two distinct cells
[ A, num2cell( B ) ]
will give you a 4-element cell array with the elements of B each in their own cell.
0 comentarios
Más respuestas (1)
timo
el 29 de Oct. de 2015
N1 = py.list({1,2,3})
N2=py.list({'Lists in python'})
N1.append(N2)
1 comentario
Ver también
Categorías
Más información sobre Call Python from MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!