필터 지우기
필터 지우기

Question on adding sets

조회 수: 2 (최근 30일)
John
John 2013년 11월 7일
편집: Matt J 2013년 11월 7일
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.

답변 (1개)

Matt J
Matt J 2013년 11월 7일
편집: Matt J 2013년 11월 7일
>> 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]

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by