Dictionaries of Hashtables in MATLAB?
35 次查看(过去 30 天)
显示 更早的评论
Hi all,
Is there a way to create a hash table or dictionary in MATLAB such that I can retrieve a set of values based on a key?
I also need to append more entries to the end of the list, given a key. I tried importing a hashtable from java.util.Hashtable, but the "add" method overwrites the current entries if a key already exists...
Thanks for all your help!
0 个评论
采纳的回答
更多回答(1 个)
Mike Croucher
2022-9-15
Reviving this thread in 2022 because R2022b contains a new dictionary data type. A tutorial-like introduction at An introduction to dictionaries (associative arrays) in MATLAB » The MATLAB Blog - MATLAB & Simulink (mathworks.com)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dictionaries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!