No BSD License  

Highlights from
Use a hash table

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

Use a hash table

by Dimitri Shvorob

 

28 Jul 2008 (Updated 25 Aug 2008)

(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

The author wishes to acknowledge the following in the creation of this submission:
Simle Hashtable

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
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.

Please login to add a comment or rating.
Updates
15 Aug 2008

minor change

25 Aug 2008

minor change

Tag Activity for this File
Tag Applied By Date/Time
structures Dimitri Shvorob 22 Oct 2008 10:12:06
cell arrays Dimitri Shvorob 22 Oct 2008 10:12:06
hash Dimitri Shvorob 22 Oct 2008 10:12:06
dictionary Dimitri Shvorob 22 Oct 2008 10:12:06
utilities Dimitri Shvorob 22 Oct 2008 10:12:06
hash Alexandre Goms 20 May 2009 19:06:31
hash Ismael 29 Apr 2011 06:02:22
hash Pravin 15 Sep 2011 14:25:36

Contact us at files@mathworks.com