A bug in containers.Map

Abdallah Elshamy <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CAAVkm5AXZ1=AjQf1Ub9z3-btrcMN4LJm_B3PErF76tVh6XaOyA@mail.gmail.com>
Hello everyone,

I am not sure if this is significant enough to be considered as a bug.

There is a different behaviour that happens when you try to create a
containers.Map using n*n char array as a key. I will illustrate on this
example

containers.Map(['foo';'bar';'baz'], [1,2])


   - In octave it creates the map with one key (the first row "foo"). This
   key has a value of [1,2]. if you tried to access the map with a key that
   equals another row ("bar" or "baz"), it will raise an error that there is
   no such key.
   - In MATLAB online (I don't have access to the PC version), it raises an
   error that the number of keys and values is not the same.

Cheers,
Abdallah
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.