No BSD License  

Highlights from
Use a hash table

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 4.57 KB File ID: #20876
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)
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.

Updates
15 Aug 2008

minor change

Contact us