Reputation: 659
I tried to create a dictionary {integer:matrix} in matlab using container.Map but it is not possible. Is there a way to create such a dictionary?
Upvotes: 2
Views: 324
Reputation: 556
Lets say i have 3 matrices a
,b
and c
. I can achieve the task by doing this
keySet = [5,10,15];
valueSet = {a,b,c};
mapObj = containers.Map(keySet,valueSet);
Hope that helps !
Upvotes: 1