About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 41
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Dean Mark
See full specifications

scripts default iconSimple Hashtable - Repackaged (Scripts) Publisher's description

This is basically a repackage of the old "Simple Hashtable" by Matthew Krauski

This is basically a repackage of the old "Simple Hashtable" by Matthew Krauski, in the new style of matlab classes. The only thing that has changed is that now the class is a handle, and I included some minor fixes to the original code. e.g. type checking that the keys inputed are really strings.

If you want to get a basic feeling of how to use the Hashtable class, look at the included file "hash_test.m" .

a) As Ryan Rifkin noted, this isn't a Hashtable at all, this is a lookup table. But in order not to shadow simulink's builtin lookup table i left the class name as Hashtable.
b) I'll quote Ryan Rifkin again : "A good lookup table in Matlab is a very useful thing to have, but a hashtable implies some effort to provide O(1) access times --- this code simply does a string comparison on all the keys, and is therefore O(n). It's great for small tables, but it doesn't scale too well"
c) Some have noted that it is possible to use java's builtin "java.util.Hashtable" instead. But note that java's hastable does not allow you to use user made matlab classes as data. The advantage of this implementation is that it allows you to use classes as data, and that you can save and load it to disk without a problem.

Clear - Clear hash table
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

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Simple Hashtable - Repackaged (Scripts) Tags:

Click on a tag to find related softwares

Is Simple Hashtable - Repackaged (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.