RosettaCodeData/Task/Associative-array-Creation/MATLAB/associative-array-creation-2.m
Ingy döt Net 0457928c3e ...
2013-04-10 15:42:53 -07:00

4 lines
120 B
Objective-C

hash = [];
hash = setfield(hash,'a',1);
hash = setfield(hash,'b',2);
hash = setfield(hash,'C',[3,4,5]);