"set-theory" class
이전 댓글 표시
Has anyone implemented a class that implements sets, as in set theory, more neatly than MATLAB does at present?
Set operations to be infix, e.g. replace intersect(A,B) by A*B for members of this class.
I'm mainly interested in sets of text strings. Convenience means more to me than great efficiency so I'm happy if under the hood the objects are
- cell arrays of char arrays like {'pqr','c123','a'}
- or arrays of strings like ["pqr","c123","a"]
but normalised to lexicographic order.
댓글 수: 3
David K.
2019년 9월 6일
If no one says that they have, it actually looks pretty simple to do yourself if you use this help page as a reference. Especially if all you want to do is basically wrap up functions matlab already has.
per isakson
2019년 9월 7일
John Pryce
2019년 9월 9일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!