RosettaCodeData/Task/Associative-array-Creation/MATLAB/associative-array-creation-2.m

5 lines
120 B
Mathematica
Raw Permalink Normal View History

2013-04-10 15:42:53 -07:00
hash = [];
hash = setfield(hash,'a',1);
hash = setfield(hash,'b',2);
hash = setfield(hash,'C',[3,4,5]);