Array of sets of integers

1 view (last 30 days)
Mohammad Sadegh Riazi
Mohammad Sadegh Riazi on 21 Jan 2016
Answered: Walter Roberson on 22 Jan 2016
Can anyone please help me to create an memory-efficient solution for creating an array of sets where each set contains only 32bit unsigned integer. Currently I am using Cell data structure but it seems rather inefficient.
Thanks,
  1 Comment
Triveni
Triveni on 22 Jan 2016
Can you explain your problem in detail??

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 22 Jan 2016
If you saying that you need arrays of sets, each of which consists of no more than 32 elements, then you can use int32() and bitset, bitget, bitand (intersection), bitor (union)

Tags

Community Treasure Hunt

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

Start Hunting!