A general purpose hashtable implemented completely in MATLAB, with O(1) performance. Allows use of almost any arbitrary MATLAB type as keys or values, including user-defined classes. You can customize behavior by supplying custom equality and hashcode functions.
In general, not as fast as alternative methods which do not allow arbitrary types as keys.
A short README is included with all details.
Cite As
Christopher (2024). hashtable class (https://www.mathworks.com/matlabcentral/fileexchange/15831-hashtable-class), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP3
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Dictionaries in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.