MATLAB Answers

Make containers.Map case insensitive

2 ビュー (過去 30 日間)
Germán 2013 年 5 月 9 日
As the title says is there a way to make the mapping case insensitive for string valued input keys?
I would like to make mapObj('A') and mapObj('a') map the same values.
I could define the keySet in lower case and then convert the input keys as
mapObj = containers.Map(keySet,valueSet)
but is there a better way to do this? Could I build the map to be case insensitive?

  0 件のコメント

Sign in to comment.

回答 (0 件)

Translated by