Hello,
U is cell:
U =
1×2 cell array
[1×2 double] [1×2 double]
>> U{1}
ans =
1 2
>> U{2}
ans =
2 3
T= []
T has the union of element of U 1 2 3
S = {}; is empty in the first time
I want to test each value of T if exist in U and the coy U{ i } in S, my S will be:
S={ { 1 2 }, {{1 2} {2 3}}, {2 3} }
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/493240-how-can-i-fill-my-cell-array#comment_771582
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/493240-how-can-i-fill-my-cell-array#comment_771582
Sign in to comment.