|
"Philipp " <philipp.maurer@ocag.ch> wrote in message
<fgv228$j8h$1@fred.mathworks.com>...
> Hi,
>
> is there something like container in Matlab e.g. Maps or
> Lists ?
> e.g. I want a map with String <-> int. I can rebuild it
> with a cell array of .key/.value structs but adding,
> searching, removing becomes where slow and needs utility
> functions and has a 'bad' syntax.
>
> Thanks,
> Philipp
These things are available in Java and integrate seamlessly
into Matlab. For example:
hash = java.util.Hashtable;
hash.put('myString',magic(3));
hash.get('myString')
ans =
8 1 6
3 5 7
4 9 2
Yair Altman
http://ymasoftware.com
|