Code covered by the BSD License  

Highlights from
Variable cardinality bookkeeping functions

Be the first to rate this file! 1 Download (last 30 days) File Size: 3.33 KB File ID: #25366

Variable cardinality bookkeeping functions

by Edmund Brekke

 

19 Sep 2009 (Updated 22 Sep 2009)

These four functions makes it easy to work with lists of sets with variable cardinalities.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
22 Sep 2009

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

Tag Activity for this File
Tag Applied By Date/Time
cardinality Edmund Brekke 21 Sep 2009 10:49:35
filtering Edmund Brekke 21 Sep 2009 10:49:35
signal processing Edmund Brekke 21 Sep 2009 10:49:35
set functions Edmund Brekke 21 Sep 2009 10:49:35
data association Edmund Brekke 21 Sep 2009 10:49:35
bookkeeping Edmund Brekke 21 Sep 2009 10:49:35
cell array Edmund Brekke 21 Sep 2009 10:49:35
subset Edmund Brekke 21 Sep 2009 10:49:35
superset Edmund Brekke 21 Sep 2009 10:49:35

Contact us at files@mathworks.com