Borrar filtros
Borrar filtros

Question on adding sets

2 visualizaciones (últimos 30 días)
John
John el 7 de Nov. de 2013
Editada: Matt J el 7 de Nov. de 2013
Suppose X is a collection of unique combination of sets: Example: X = ({1,2,3},{1,3,4},{1,4}) suppose I encounter another unique combination of set. How do I add it to my existing set X.

Respuestas (1)

Matt J
Matt J el 7 de Nov. de 2013
Editada: Matt J el 7 de Nov. de 2013
>> X = {{1,2,3},{1,3,4},{1,4}}; Y={{10 10 10},{3 2 1}};
>> Combined=[X,Y];
>> Combined{:}
ans =
[1] [2] [3]
ans =
[1] [3] [4]
ans =
[1] [4]
ans =
[10] [10] [10]
ans =
[3] [2] [1]

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by