RosettaCodeData/Task/Associative-array-Creation/MATLAB/associative-array-creation-2.m
2023-07-01 13:44:08 -04: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]);