View License

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

» Watch video

Highlights from
Use a hash table

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 4.57 KB File ID: #20876 Version: 1.0
image thumbnail

Use a hash table

by

 

28 Jul 2008 (Updated )

(Java class wrapper)

| Watch this File

File Information
Description

Class Hashtable offers Matlab users access to the hash table data structure.
The class allows multiple key-value pairs specified in 'get', 'put' and 'remove' methods, using cell arrays to collect inputs and outputs, and offers vector forms of 'iskey' and 'isvalue', as well as the option to initialize a hash table with an initial key/value set.

Note that Java's involvement limits the range of types that can be stored in a Hashtable instance.

Acknowledgements

Simle Hashtable inspired this file.

MATLAB release MATLAB 7.4 (R2007a)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
28 Aug 2008 Dimitri Shvorob

.. To elaborate that last sentence. Scalars and strings are fine; numeric and cell arrays are fine (except for row vectors, which get transposed), structures are no-go, and neither are objects. Clearly, this is not a 100% satisfactory solution.

Comment only
Updates
15 Aug 2008

minor change

04 Apr 2016 1.0

BSD

Contact us