|
|
| File Information |
| Description |
This is a simple hashtable class. Keys must be a string (strcmp is used to located entries), and the data can be any type. The internal structure is two cell lists, one for the keys and one for the data.
Following is the hashtable Contents:
@HASHTABLE
Files
clear - Clear hash table
display - Display a hash table object
elements - Get all hash table elements
get - Get data from the hash table
hashtable - Constructor for HashTable class
isempty - Check to see if the hash is empty
iskey - Check to see if the hash is currently using a key
keys - Get all the keys currently being used in the hash
put - Put data in the hash table
remove - Remove element from the hash
values - Get all data contained in the hash table
As previously stated, this is a very simple structure. No attempt has been made for optimization, and 'put' and 'get' can only handle one entry at a time. The intent is to provide a structure that overcomes MATLAB struct field name limitations. |
| Acknowledgements |
This submission has inspired the following:
Use a hash table, Simple Hashtable - Repackaged
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Other requirements |
Developed and tested on 7.0.1 (R14SP1), OS Windows XP SP2 |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (11) |
| 14 Dec 2004 |
Joe Hicklin
|
|
|
| 28 Mar 2005 |
Vineet Jain
|
|
|
| 28 Sep 2005 |
Fernando Guevara
|
|
|
| 10 Mar 2006 |
Theo Alexandrov
|
|
|
| 21 Nov 2006 |
Mike Fero
|
|
|
| 24 Apr 2007 |
Ryan Rifkin
|
|
|
| 16 Sep 2008 |
Tim Johnson
|
|
|
| 22 Nov 2010 |
Scott
|
|
|
| 23 Mar 2011 |
Shawn Hershey
|
|
|
| 26 Sep 2011 |
Abhinav Gaur
|
|
|
| 06 Oct 2011 |
Erik
|
|
|
|
Contact us at files@mathworks.com