Hash table declaration

Hash table declaration
782 Downloads
Aktualisiert 24. Feb 2010

Lizenz anzeigen

H = hash;

H('key') = value; %assign value to key

v = H('key'); % retrieve value for a key

H.keys % return cell array of keys

H. values % return array of values

H.idx % returns sparse matrix of indexes

Remark:

The hash function used is sum of the key.

It can easily be changed if needed.

Zitieren als

Dimitar Atanasov (2025). Hash table declaration (https://de.mathworks.com/matlabcentral/fileexchange/26778-hash-table-declaration), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R14
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0