Create a set of sets
Ältere Kommentare anzeigen
Hi Team!
Is there a way in Matlab to create a set of sets?
V = [[1 2] [1 3] [1 2 3]];
I tried quite a few methods but the only one that worked is to convert everything to a string and then do a bunch of string manipulations. I would expect that Matlab would have a better way to handle this. Also, the sets can vary in the number of elements.
Thanks for the assist!
Akzeptierte Antwort
Weitere Antworten (1)
Raghul Dhanesh
am 13 Dez. 2020
0 Stimmen
V = [[1 2] [1 3] [1 2 3]];
Kategorien
Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!