Variable cardinality bookkeeping functions

버전 1.1.0.0 (3.33 KB) 작성자: Edmund Brekke
These four functions makes it easy to work with lists of sets with variable cardinalities.
다운로드 수: 483
업데이트 날짜: 2009/9/22

라이선스 보기

In many filtering problems one receive not just a single measurement, but a set of measurements at each time step. The most straightforward way of dealing with such variable cardinality entities in Matlab is to store them in cell arrays, but for various reasons the user may not want that. The submitted files (4 functions and an illustratory script) allows the user to store the collection of sets in a matrix instead. Thus the set of sets is given by a concatenated matrix and a row vector containing the cardinalities:

SetOfSets = [ Set1, Set2, .... SetM]
tCloud = [nSet1,nSet2, ... nSetM]

The functions tCloud2BegInd and tCloud2EndInd allows the user to obtain the start and end indices of all the subsets, and thus of any particular set as well. In case one needs to go the other way the functions begInd2TCloud and endInd2TCloud are provided as well.

The best way to understand how this works is perhaps to study the attached illustratory script. The script may need statistics toolbox to run, but the other functions do not require any toolboxes.

인용 양식

Edmund Brekke (2024). Variable cardinality bookkeeping functions (https://www.mathworks.com/matlabcentral/fileexchange/25366-variable-cardinality-bookkeeping-functions), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Some files were missing in the first submission. These are now included.

1.0.0.0