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

5 lines
116 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
hash = [];
2026-04-30 12:34:36 -04:00
hash = setfield(hash,'a',1);
hash = setfield(hash,'b',2);
2023-07-01 11:58:00 -04:00
hash = setfield(hash,'C',[3,4,5]);