Dictionary data structure

This class provides a simple key/value datastructure for char keys and arbitrary values

658 Downloads

Updated 27 Jul 2015

View License

@@ ATTENTION @@
I've merged my separate submissions into KerMor/matlabtools (http://de.mathworks.com/matlabcentral/fileexchange/52299-kermor-matlabtools), which contains this submission. Please refer to that package to retrieve the current status.
@@@@
This class provides a simple key/value data structure for character keys and values of any MatLab data type.

Supports direct referencing like d('mykey') = 'myvalue'.

Also check out the dict class at #19647.
(Unfortunately i didnt check the file exchange before writing my own, but by now i've included it at many places and also need this class as prerequisite for other FileExchange downloads)

Cite As

Daniel Wirtz (2023). Dictionary data structure (https://www.mathworks.com/matlabcentral/fileexchange/33901-dictionary-data-structure), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: dict

Inspired: KerMor/matlabtools

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

I've merged my separate submissions into KerMor/matlabtools (http://de.mathworks.com/matlabcentral/fileexchange/52299-kermor-matlabtools), which contains this submission. Please refer to that package to retrieve the current status.
- The clear method now also takes an optional single key whose associated value should be cleared
- More property descriptions (for mtoc++, see FEX #33826)

1.0.0.0