File Exchange

image thumbnail

davestanley/MultiDi​mensionalDictionary

version 2.0 (35.8 MB) by

MDD allows the implementation of multidimensional Python-esque dictionaries in MATLAB.

2 Downloads

Updated

MATLAB Multidimensional Dictionary class
Summary: MDD allows the implementation of multidimensional Python-esque dictionaries in MATLAB.
Description: MDD can be interpreted in several different ways.

+ A map/dictionary that associates multiple keys with a single value
+ An N-dimensional table (a table is equivalent to an MDD object in 2-dimensions)
+ A matrix or cell array that can be indexed by using strings and regular expressions

WARNING: This is a work in progress. The core code is implemented, but documentation is missing. I will be updating it more over the coming months.

This code is similar to the multidimensional map function implemented by David Young. However, this implementation does not use MATLAB maps and instead is adds functionality to traditional MATLAB matrices and cell arrays.

Github: See GitHub page https://github.com/davestanley/MultiDimensionalDictionary

Example commands: See tutorial_MDD.m

Typical usage:
out = md(43:45,'test*', 1)
MDD objects can be indexed using normal Matlab indexing, or via regular expressions, which do a look up against previously defined axis names. The above example would return a new MDD object with indexes 43:45 along dimension 1, and with all axis values beginning with 'test' along dimension 2.

MATLAB Map Containers (https://www.mathworks.com/help/matlab/map-containers.html)
Multidimensional implementation of this by David Young (https://www.mathworks.com/matlabcentral/fileexchange/33068-a-multidimensional-map-class)

Comments and Ratings (2)

David Stanley

@Stephen Cobeldick: Just added the description. Thanks for the feedback!

Stephen Cobeldick

@David Stanley: this seems interesting, but you did not provide any explanation, description, or examples. Can you please show us how your submission can be used.

Updates

2.0

Updated description

2.0

Updated description

2.0

Pointed to new github repo

1.0

updated readme

1.0

Updated description again

1.0

Updated description

MATLAB Release
MATLAB 8.4 (R2014b)
Acknowledgements

Inspired by: A multidimensional map class

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video