2010-07-23
Hash tables in MATLAB - Statistical Machine Learning and Visualization
Upon a little reflection, it occured to me that MATLAB does in fact have the ability for a rudimentary native hash-table:
terms = { 'price' 'cents' 'govern' 'billion' 'company' 'state' 'economy' 'stock' }; ids = num2cell(1:length(terms)); dict = reshape({terms{:};ids{:}},2,[]); dict = struct(dict{:}); dict.('cents') % my two cents!
Of course one could also use java:
dict = java.util.Hashtable; dict.put('key',[1 2 3]); dict.get('key') dict.containsKey('key')
Hash tables in MATLAB - Statistical Machine Learning and Visualization.
Related posts:
- Venture Capital’s New Green Machine from wsj YEAR-END REVIEW OF MARKETS & FINANCE Venture...
![[del.icio.us]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/google.png)
![[MySpace]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/myspace.png)
![[Technorati]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/technorati.png)
![[Twitter]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/twitter.png)
![[Windows Live]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://my.textjourney.com/eric/wp-content/plugins/bookmarkify/email.png)









One Response to “Hash tables in MATLAB - Statistical Machine Learning and Visualization”